From m204wiki
Jump to navigation Jump to search

M204.2122  token constraint violation for field token2 in record token3

During a REDEFINE to AT-MOST-ONE or EXACTLY-ONE, a violation of the AT-MOST-ONE or EXACTLY-ONE Field-Level Constraint was discovered in the file. The error message indicates the field name and record number that contain more than one occurrence. All such violations within the file for the field to be redefined are reported during REDEFINE processing.

The REDEFINE fails, undoing any changes it might have made in the process of AT-MOST-ONE or EXACTLY-ONE verification.

File manager response: Using information from the above message and an understanding of the data and application this file represents, update the file to remove all but one occurrence of the field in the record(s) identified. Once the file is cleared of all pre-existing AT-MOST-ONE and EXACTLY-ONE violations, the REDEFINE of the field to AT-MOST-ONE or EXACTLY-ONE will complete successfully.

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