M204.0305

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

M204.0305  Subscripts or length specification not allowed

A SOUL %variable that is neither an array nor assigned to a value is found followed by a subscript or length.

A correct example:

%V(5) = '12345'

Invalid examples:

PRINT %V(5)

$SUBSTR(%V(5),1,3)

In both of the invalid examples, the 5 refers to a subscript and not to a length.

The compilation continues, but the request is not executed.

Response: Eliminate the %variable length or subscript and retry.

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
COMPILECompilation error

Back to list of messages