MSIR.0342 SIRFIELD RELATE not allowed for field which has FORMAT (item)

From m204wiki
Jump to navigation Jump to search

This message indicates that a SIRFIELD RELATE command was issued for two fields, and that the command could not succeed because a SIRFIELD FORMAT command for one of them already specified an EXCEPTIONS, ALTERNATES, or ERROR clause, as indicated by item. For related fields, these clauses are specified only on SIRFIELD RELATE commands.

To relate the fields, you must re-INITIALIZE the file, remove the EXCEPTIONS, ALTERNATES, and ERROR clauses from SIRFIELD FORMAT commands for any fields to be related, and create those clauses on SIRFIELD RELATE commands where needed.

The command is rejected.

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

Back to list of messages