M204.0305
Jump to navigation
Jump to search
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=0 | Sets online return code |
---|---|
RETCODEB=4 | Sets batch (single user) return code |
CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter |
AUDITER | Writes the message with line type ER to the audit trail |
COUNT | Increments the error count (ERCNT) parameter |
ECHO | Displays the line that caused the error |
COMPILE | Compilation error |