MSIR.0342 SIRFIELD RELATE not allowed for field which has FORMAT (item)
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=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 |