M204.0597: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (add <var>'s)
Line 1: Line 1:
{{Template:M204.0597 skeleton}}
{{Template:M204.0597 skeleton}}
<P>
<P>
A <code>FOR EACH RECORD IN <i>label</i> IN ORDER</code> 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. </P>
A <code>FOR EACH RECORD IN <i>label</i> IN ORDER</code> statement refers to the result of a <var>Sort Records</var> statement. The <code>IN ORDER</code> clause is only valid when the <var>For</var> statement refers to a <var>Find</var> statement or to a <var>List</var>. </P>
<p>
<p>
<b>Response:</b> 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. </p>
<b>Response:</b> Remove the <code>IN ORDER</code> clause. If you want to process records in index or sort order, refer to a <var>Find</var> statement or to a <var>List</var>.  
</p>
{{Template:M204.0597 footer}}
{{Template:M204.0597 footer}}
<!-- skeleton as it was in pdf/IN ORDER CLAUSE IS INVALID AGAINST SORTED SET /-->
<!-- skeleton as it was in pdf/IN ORDER CLAUSE IS INVALID AGAINST SORTED SET /-->

Revision as of 20:56, 27 February 2018

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=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