Previous Topic: DBOMP Commands and Corresponding DMLNext Topic: Converting DBOMP Retrieval and Update Programs


Sequence of Logic in Converted Programs

The general sequence of logic in the converted load and maintenance programs should be as follows:

  1. Read input data or transaction record.
  2. Format the input data into the CA IDMS/DB record work area. (The COBOL code to accomplish this is generated automatically.)
  3. Establish necessary currencies.
  4. Issue the appropriate DML Assembler macro:
  5. Check the status code returned by CA IDMS/DB (see DBOMP Error Codes With CA IDMS/DB Equivalents).

Note: Check the CA IDMS/DB status after every call to CA IDMS/DB to determine whether the requested function was performed. The status codes returned to the program may indicate program errors, or they may be tested by program logic to determine subsequent program action. For more information on status codes and their meanings, see the CA IDMS DML Reference Guide for COBOL and the CA IDMS DML Reference Guide for PL/I.