To use navigational DML commands effectively in a process, the application developer should be familiar with database programming concepts. These concepts are discussed in detail in the CA IDMS Navigational DML Programming Guide.
Considerations
The following special considerations apply to accessing the database in the CA ADS environment:
Note: For more information on the limitations of using the FORCE option with ADS dialogs, see the Area Statement section (in the Subschema Statements chapter) in the CA IDMS Database Administration Guide.
The READY command is executed when the first DML command is encountered. If an invalid (non-zero) error status is returned from the READY or BIND processing, the dialog aborts. Process code cannot intercept these errors.
|
Record |
Description |
|---|---|
|
Current of run unit |
The most recently accessed record occurrence |
|
Current of record type |
The most recently accessed occurrence of each record type |
|
Current of set type |
The most recently accessed record occurrence (owner or member) of each set |
|
Current of area |
The most recently accessed record occurrence in each area |
CA ADS saves or releases the currencies established during dialog execution based on the command used to pass control to the next function or dialog.
|
Database command
|
Currency updated by successful execution |
Successful execution
|
|||
|---|---|---|---|---|---|
|
Run unit |
Record |
Set |
Area |
||
|
ACCEPT* |
X X X X |
None |
|||
|
IF* |
X X |
None |
|||
|
FIND/OBTAIN DB-KEY |
|
All |
|||
|
FIND/OBTAIN CURRENT* |
X X X X |
All |
|||
|
FIND/OBTAIN WITHIN SET |
X |
All |
|||
|
FIND/OBTAIN WITHIN AREA |
X2 |
All |
|||
|
FIND/OBTAIN OWNER |
X |
All |
|||
|
FIND/OBTAIN CALC |
|
All |
|||
|
FIND/OBTAIN DUPLICATE |
X |
All |
|||
|
FIND/OBTAIN USING SORT KEY |
X |
All |
|||
|
GET |
X |
None |
|||
|
STORE |
X3 |
All |
|||
|
MODIFY |
X |
None4 |
|||
|
ERASE |
X |
Nullifies of all record types and sets involved |
|||
|
CONNECT |
X X |
Run unit, set |
|||
|
DISCONNECT |
X |
Nullifies currency of object set; updates current of run unit and area |
|||
|
KEEP* |
X X X X |
None |
|||
|
COMMIT |
|
None |
|||
|
COMMIT ALL |
|
Nullifies all currencies |
|||
|
ROLLBACK |
|
Nullifies all currencies |
|||
|
ROLLBACK CONTINUE |
|
Nullifies all currencies |
|||
|
FINISH |
|
Nullifies all currencies |
|||
Note:
* Uses only one currency as determined by command format.
2 Required for NEXT and PRIOR formats only.
3 All in which record type participates as an automatic member.
4 Except in the case of a sorted set.
|
Copyright © 2014 CA.
All rights reserved.
|
|