Moving a Key Field Value to Retrieve a Record

Move the identifying key field values to a set of record retrieval variables (DB fields) using the following format:
        MOVE <key-field>               TO DB-<field-name>

For example, to find a record in the GLMASTER file, you must set the Company, Acct-Unit, Account, and Sub-Account key field values in the appropriate DB fields. If the key values currently reside in your working storage, use the following series of MOVE commands to fill the DB fields:

       MOVE GL00WS-COMPANY           TO DB-COMPANY.
       MOVE GL00WS-ACCT-UNIT         TO DB-ACCT-UNIT.
       MOVE GL00WS-ACCOUNT           TO DB-ACCOUNT.
       MOVE GL00WS-SUB-ACCOUNT       TO DB-SUB-ACCOUNT.