M204.0321

From m204wiki
Jump to navigation Jump to search

M204.0321  Invalid cross-reference

A SOUL statement references a list associated with a different file or group than is being accessed. An example of this might be:

JOHN: IN THISFILE FIND ALL RECORDS FOR WHICH NAME = JOHNNY APPL: PLACE RECORDS IN JOHN ON LIST APPLES CRITIC: IN THATFILE FIND ALL RECORDS FOR WHICH REMARKS = SNIDE ORAN: PLACE RECORDS IN CRITIC ON LIST ORANGES THISF: IN THISFILE FIND ALL RECORDS RID: REMOVE ALL RECORDS IN THISF FROM LIST ORANGES

The last statement receives the error message because LIST ORANGES is associated with THATFILE. The compilation continues, but the request is not executed.

Response: Change the statement to reference a list associated with the same file or group accessed and retry.

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