With gawk 3.1.3 on Linux, I get this response:
echo testing | awk '{x} {print substr($x,1,3)}'
tes
You are using some ancient broken AWK implementation.
It may be the substr() function which may be missing in the AWK on your AIX.
It may also be the semicolon (

between the curly braces that you failed to insert.