

Converting DBOMP to CA IDMS/DB › Converting DBOMP Load and Maintenance Programs › Sequence of Logic in Converted Programs
Sequence of Logic in Converted Programs
The general sequence of logic in the converted load and maintenance programs should be as follows:
- Read input data or transaction record.
- Format the input data into the CA IDMS/DB record work area. (The COBOL code to accomplish this is generated automatically.)
- Establish necessary currencies.
- Issue the appropriate DML Assembler macro:
- @STORE— Add a record occurrence to the database.
- @ERASE— Delete a record occurrence from the database.
- @MODIFY— Alter a record key or sequence field.
- @CONNECT— Add a record occurrence to a set occurrence.
- @DISCONNECT— Remove a record occurrence from a set occurrence.
- 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.
Copyright © 2013 CA.
All rights reserved.
 
|
|