7.13 CHECK_FOR
The CHECK_FOR command is used to check for the existence of a record in a particular file.
Portability Considerations | Refer to parameter IN_FILE. |
Also See
7.13.2 CHECK_FOR Comments / Warnings
Required
CHECK_FOR ---- INFILE --------- file name . *FIRST ---------------------->
library name
>-- WITH_KEY ----- key field values ------------------------->
expandable group expression
-----------------------------------------------------------------------------
Optional
>-- IO_STATUS ----- *STATUS -------------------------------->
field name
>-- IO_ERROR ------ *ABORT --------------------------------->
*NEXT
*RETURN
label
>-- VAL_ERROR --- *LASTDIS --------------------------------->
*NEXT
*RETURN
label
>-- NOT_FOUND -- *NEXT ------------------------------------>
*RETURN
label
>-- ISSUE_MSG --- *NO ----------------------------------------|
*YES