MSIR.0842 Record:CurrentRecord must be inside a FOR EACH RECORD loop

From m204wiki
(Redirected from MSIR.0842)
Jump to navigation Jump to search

The shared function CurrentRecord in the Record class was invoked outside a For Each Record loop context. Since the intent of the CurrentRecord method is to return a record object representing the current record in a For Each Record loop, it makes no sense outside such a 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

Back to list of messages