MSIR.0732 Invalid context for (type)

From m204wiki
Jump to navigation Jump to search

An object or structure variable was used in an invalid context. One of the most common cases where this error occurs is in an attempt to print the value of an object variable, especially an enumeration, or to use an object variable as a string (again, most common with object variables).

For enumerations, the ToString method should be added to the variable to print it or use it as a string:

%truth is enumeration boolean ... print %truth:toString

For other objects, one presumably really intends to use an object member in the context or perhaps the result of a method like ToString that converts the object contents to a simple datatype.


Message attributes:

RETCODEO=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages