M204.0243

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.0243  "in order" not valid in group context

A FOR EACH RECORD...IN ORDER statement refers to a record set from a group. Neither sorted files nor ORDERED fields can be used in group context to retrieve data in sorted order.

Response: Remove the IN ORDER clause, if unsorted processing is acceptable. If you must process records from a group in sorted order, use the Sort statement. If you want to process records from one file in the group and that file is sorted, or the statement specifies IN ORDER BY with an ORDERED field, use the IN filename clause in your Find statement to restrict the set to a single file.

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

Back to list of messages