Skip to main content

ISO 11756-1999 Standard Errors

ISO 11756-1999 Standard Errors

ObjectScript supports ISO 11756-1999 standard errors. These errors are returned to the $ECODE special variable.

ISO 11756-1999 Standard Error Messages
Message Text Meaning
M1 Naked indicator undefined.
M2 Invalid $FNUMBER code string combination.
M3 $RANDOM argument less than 1.
M4 No true condition in $SELECT.
M5 Line reference less than 0 (zero).
M6 Undefined local variable.
M7 Undefined global variable.
M8 Undefined special variable.
M9 Divide by zero.
M10 Invalid pattern match range.
M11 No parameters passed.
M12 Invalid line reference (negative offset).
M13 Invalid line reference (line not found).
M14 Line level not one (1). (DO command.)
M15 Undefined index variable. (FOR command.)
M16 QUIT with an argument not allowed.
M17 QUIT with an argument required.
M18 Fixed-length READ not greater than 0 (zero).
M19 Cannot merge a tree or subtree into itself.
M20 Line must have a formal parameter list.
M21 Formal parameter list name duplication.
M22 SET or KILL to ^$GLOBAL structured system variable name (SSVN) when data in global.
M23 SET or KILL to ^$JOB structured system variable name (SSVN) for nonexistent job number.
M24 Change to collation algorithm while subscripted local variables defined.
M26 Nonexistent environment (nonexistent namespace).
M27 Attempt to roll back a transaction that is not restartable.
M28 Mathematical function, parameter out of range.
M29 SET or KILL on structured system variable name (SSVN) not allowed by implementation.
M30 Reference to global variable with different collating sequence within a collating algorithm.
M31 Device control mnemonic expression used for a device without a mnemonic space being selected.
M32 Device control mnemonic used in user-defined mnemonic space which has no associated line.
M33 SET or KILL to ^$ROUTINE when the specified routine exists.
M35 Device does not support mnemonic spaces. (OPEN or USE command.)
M36 Incompatible mnemonic spaces. (OPEN or USE command.)
M37 READ from device identified by null string.
M38 Invalid structured system variable name (SSVN) subscript.
M39 Invalid $NAME argument.
M40 Call by reference in the actual parameter list in JOB command.
M41 Invalid LOCK argument within a transaction.
M42 Invalid QUIT within a transaction.
M43 Invalid range value ($X or $Y). (SET command.)
M44 Invalid command outside a transaction.
M45 Invalid GOTO reference.
M57 A label is defined more than once in a routine.
M58 Too few formal parameters.
FeedbackOpens in a new tab