M204.1528: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (add <var>'s) |
||
Line 1: | Line 1: | ||
{{Template:M204.1528 skeleton}} | {{Template:M204.1528 skeleton}} | ||
<P> | <P> | ||
A <code> | A <code>For Each Record In <i>label</i> Where/With</code> statement refers to the result of a <var>Sort Records</var> statement. The <var>Where/With</var> clause is valid only 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> Correct the program by adding the | <b>Response:</b> Correct the program by adding the <var>Where/With</var> clause to a <var>Find</var> statement and referring the <var>Sort</var> statement to the new <var>Find</var> statement, or by placing the conditions in the <var>Where/With</var> clause in an <var>If</var> statement inside the <var>For Each Record</var> loop. | ||
</p> | |||
{{Template:M204.1528 footer}} | {{Template:M204.1528 footer}} | ||
<!-- skeleton as it was in pdf/WHERE/WITH CLAUSE IS INVALID AGAINST SORTED SET /--> | <!-- skeleton as it was in pdf/WHERE/WITH CLAUSE IS INVALID AGAINST SORTED SET /--> |
Latest revision as of 23:56, 7 March 2018
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=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 |