Page History
...
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
...
| Panel | ||
|---|---|---|
| ||
Required | ||
| No Format | ||
| Required
CHECK_FOR ---- INFILE --------- file name . *FIRST ----------------------> library name >-- WITH_KEY
>-- WITH_KEY ----- key field valuesvalues -------------------------> expandable group expression
-------------------------------------------------------------------------- Optional >-- IO_STATUS--- >-- IO_STATUS ----- *STATUS --------------------------------> field name >-- IO_ERROR
>-- IO_ERROR ------ *ABORT ---------------------------------> *NEXT *RETURN label >-- VAL_ERROR ---- *LASTDIS
>-- VAL_ERROR --- *LASTDIS ---------------------------------> *NEXT *RETURN label >-- NOT_FOUND ---- *NEXT
>-- NOT_FOUND -- *NEXT ------------------------------------> *RETURN label >-- ISSUE_MSG ---- *NO
>-- ISSUE_MSG --- *NO ----------------------------------------|
|