MPE/iX Shell and Utilities Reference Manual, Vol 1

awk(1) MPE/iX Shell and Utilities awk(1)
Messages
Message: array "name" cannot be used as a scalar
Cause: You attempted to use the array name which has been used earlier in the script as
a scalar. A variable can be used as an array or a scalar but not as both.
Action: Make sure that you use name as either a scalar or an array but not as both.
Message: attempt to redefine builtin function
Cause: You attempted to redefine one of the built-in awk functions.
Action: Choose a name for the function you are defining that is not the same as any of
the built-in functions. See the DESCRIPTION section of this man page for lists
of built-in arithmetic and string functions.
Message: cannot assign to function "funcname"
Cause: "funcname" is defined to be a function in your script and cannot be used as a
variable.
Action: Use a different name for the variable.
Message: cannot open input file "filename"
Cause: awk was unable to open one of the files named on the command line.
Action: Check that the file exists, was named properly and that you have the appropriate
permissions.
Message: cannot open script file "filename"
Cause: awk was unable to open one of the script files specified with the –f option.
Action: Check that the file exists, was named properly and that you have the appropriate
permissions.
Message: division (/ or %) by zero
Cause: An arithmetic operation using / or % resulted in an attempt to divide by zero.
Action: Modify your program so that division by zero does not occur.
Message: EOF in regular expression
Cause: awk encountered the end-of-file character while reading a regular expression
from the script file.
Action: Check for missing / delimiters at the end of regular expressions.
Message: EOF in string
Cause: awk encountered the end-of-file character while reading a string constant from
the script file.
Action: Check for missing " delimiters at the end of string constants.
Message: error in function funcname(arg)atNR=num
Cause: A math error occurred while performing the function funcname on argument
arg.
Action: Make sure that you are passing a proper argument to the function funcname.
Commands and Utilities 1-37