This appendix explains the following Assembler topics, which differ from the COBOL environment:
For more information related to using Assembler with DC, see CA IDMS DML Reference Guide for Assembler.
Checking the Status of Calls to DB
Assembler programs do not use the IDMS-STATUS block; you must explicitly code your own error-checking routines. You should check the ERRSTAT field after every DB DML call; if the DBMS returns an unexpected nonzero value, you should:
You should also display any other relevant variable-storage fields.
Checking the Status of Calls to DC
Assembler DC programs do not need to use the IDMS-DC communications block. You explicitly check the value returned to register 15 to determine the result of a DC call. If the call to DC included database access, you must check:
If DC returns an unexpected nonzero status, you should:
Testing for the return code in register 15 is not usually necessary because most Assembler DML commands have options that take action based on the return code value.
Copyright © 2013 CA.
All rights reserved.
|
|