M204.0242

From m204wiki
Revision as of 20:16, 21 February 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.0242  SORTKEY or ORDERED field not found -- "IN ORDER" ignored

A FOR EACH RECORD...IN ORDER (BY) statement refers to a record set from an unsorted file, or a field name is specified following "BY" which is neither the sort key nor an ordered field. The IN ORDER option is ignored because IN ORDER implies the file is in sorted order and IN ORDER BY must be followed by the name of the sort key or an ORDERED field. When the request is executed, the records are processed in unsorted order.

Response: Remove or correct the IN ORDER clause. If you must process records in sorted order, consider using the SORT statement.

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
AUDITMSWrites the message with line type MS to the audit trail
NOCOUNTDoes not increment the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages