The program identifies the operating mode in which it will execute through a DML statement called a precompiler-directive that varies based on the language in which the program is written. COBOL programs identify the operating mode in a special section of the ENVIRONMENT DIVISION called the IDMS-CONTROL SECTION, as illustrated in the following example that identifies this as a batch application:
IDMS-CONTROL SECTION.
PROTOCOL MODE IS BATCH.
The operating mode affects the form and content of the calling sequences produced by the DML precompiler.
DEBUG can be specified as an option of the operating mode. If specified, each DML statement in the program is identified by a sequence number that can be used to determine the last DML statement that was executed when an error occurs. This can be very useful in debugging navigational applications.
Copyright © 2013 CA.
All rights reserved.
|
|