7 10 CHECK_FOR

LANSA Technical

7.10 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.10.1 CHECK_FOR Parameters

7.10.2 CHECK_FOR Comments / Warnings

7.10.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