| Note: Usage options |
The FETCH command is used to fetch fields from the first record in a file that matches a nominated key, condition or relative record number.
Portability Considerations |
Required FETCH ----------- FIELDS ---------- field name field attributes ------> >-- FROM_FILE ------ file name . *FIRST ----------------> ------------------------------------------------------------------------- Optional >-- WHERE --------- 'condition' ------------------------> >-- WITH_KEY ------ key field values -------------------> >-- IO_STATUS ----- *STATUS ---------------------------> >-- IO_ERROR ----- *ABORT ----------------------------> >-- VAL_ERROR ---- *LASTDIS ---------------------------> >-- NOT_FOUND -- *NEXT ------------------------------> >-- ISSUE_MSG ---- *NO --------------------------------> >-- LOCK ---------- *NO --------------------------------> >-- WITH_RRN ---- *NONE ------------------------------> >-- RETURN_RRN -- *NONE ------------------------------> >-- KEEP_LAST ----- *NONE -------------------------------| |