M204.0597
M204.0597 In Order clause is invalid against sorted set
A FOR EACH RECORD IN label IN ORDER
statement refers to the result of a SORT RECORDS statement. The IN ORDER clause is only valid when the FOR statement refers to a FIND statement or to a LIST.
Response: Remove the IN ORDER clause. If you want to process records in index or sort order, refer to a FIND statement or to a LIST.
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 |