You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.1 CHECK_FOR Parameters

7.13.2 CHECK_FOR Comments / Warnings

7.13.3 CHECK_FOR Examples


                                                        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
  • No labels