Previous Topic: Identifying the SubschemaNext Topic: IDMS Communications Block


Including Data Descriptions

Descriptions of the following structures must be included in the program in order to reserve space for them in variable storage.

The programmer controls how and where the data descriptions are generated using precompiler-directive statements. For example, the COBOL programmer can automatically generate all required descriptors at the end of the WORKING-STORAGE section by extending the PROTOCOL statement as follows:

IDMS-CONTROL SECTION.
PROTOCOL MODE IS BATCH DEBUG
         IDMS-RECORDS WITHIN WORKING-STORAGE.

Alternatively, the COBOL programmer can generate the descriptions at the end of the LINKAGE SECTION by specifying:

IDMS-RECORDS WITHIN LINKAGE.

To have complete control over where structure descriptions are generated, the COBOL programmer can specify:

IDMS-RECORDS MANUAL.

The programmer then inserts a COPY statement, as shown below, at the point where the descriptions are to be generated:

COPY IDMS SUBSCHEMA-DESCRIPTION.

Additional forms of the COPY IDMS statement permit COBOL programmers to generate descriptions for the IDMS communications block, subschema names and subschema records separately, and control the level numbers that are generated.

See Copying Record Definitions and Their Synonyms for more information on copying information from IDD.