M204.1528

From m204wiki
Revision as of 15:32, 7 March 2018 by DmeWiccan (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

M204.1528  Where​/​With clause is invalid against sorted set

A FOR EACH RECORD IN label WHERE/WITH statement refers to the result of a SORT RECORDS statement. The WHERE/WITH clause is valid only when the FOR statement refers to a FIND statement or to a LIST.

Response: Correct the program by adding the WHERE/WITH clause to a FIND statement and referring the SORT statement to the new FIND statement, or by placing the conditions in the WHERE/WITH clause in an IF statement inside the FOR EACH RECORD loop.

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