The ENDCHECK command is used in conjunction with the BEGINCHECK command and identifies the end of a block of validation checks.
In addition it also indicates what is to happen if a validation error was detected within the validation block.
Refer to the BEGINCHECK command for more details and examples of this command.
Also See
7.45.2 ENDCHECK Comments / Warnings
Optional
ENDCHECK ----- IF_ERROR ----- *LASTDIS ----------------------->
*NEXT
*RETURN
label
>-- MSGTXT ------- *NONE -------------------------->
message text
>-- MSGID -------- *NONE -------------------------->
message identifier
>-- MSGF --------- DC@M01 . *LIBL ----------------->
message file . library name
>-- MSGDTA ------- substitution variables ---------|
|expandable group expression|
------- 20 max ------------