7.112 SET_ERROR

Note: Usage options

The SET_ERROR command is used to set an error against a field within a BEGINCHECK / ENDCHECK validation block.

Normally the SET_ERROR command is used when a set of RDML commands other than the standard commands RANGECHECK, DATECHECK, VALUECHECK, etc is used to validate a field.

Also See

7.112.1 SET_ERROR Parameters

7.112.2 SET_ERROR Examples


                                                                                             Required

  SET_ERROR ------ FOR_FIELD ------ field name -------------------->
                                                  | expandable group expression |
                                                   --------- 100 max ------------

 -----------------------------------------------------------------------

                                                                                             Optional

                        >-- MSGTXT ------- *NONE ------------------------>
                                                        message text

                        >-- MSGID -------- *NONE ------------------------>
                                                       message identifier

                       >-- MSGF --------- *NONE   .  *LIBL ---------------->
                                                      message file . library name

                       >-- MSGDTA ------ substitution variables -----------|
                                                 | expandable group expression |
                                                  --------- 20 max -------------