MPE/iX Shell and Utilities Reference Manual, Vol 1

dc(1) MPE/iX Shell and Utilities dc(1)
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Message: can not execute number
Cause: You attempted to use the x operator to execute a string, but the value on the
top of the stack was a number.
Action: Only use the x operator when there is a string on top of the stack.
Message: command too long
Cause: You specified a command line to pass to the system with the ! operator that
was longer than 1000 bytes.
Action: Use a shorter command line.
Message: divide by 0
Cause: You attempted to divide by 0.
Action: Do not divide by zero.
Message: empty stack
Cause: You attempted an operation that required popping a value from the stack, but
the stack was empty.
Action: Push a value onto the stack and try the operation again.
Message: exponent must be an integer from 0 to max
Cause: When using the ˆ operator, the second value popped from the stack (the expo-
nent) was not an integer or was not in the range 0 to max.
Action: Make sure that the value which is to be used as the exponent is an integer in the
range 0 to max.
Message: filename: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: index too big
Cause: You attempted to use an array index that was greater than 2047.
Action: Use an array index that is less than or equal to 2047.
Message: input radix too big
Cause: You specified an input radix (base) that is too large for dc to handle.
Action: Specify a smaller input radix.
Commands and Utilities 1-165