This article describes how IDMSDMLC, the IDMS cobol pre-compiler, decides which version of SUBSCHEMA-CTRL to copy from the dictionary into a program.
Release : All supported releases.
Component : IDMS
IDMSDMLC searches the SUBSCHEMA-CTRL records based on the MODE specified in the PROTOCOL statement of the IDMS-CONTROL SECTION of the program. If there is no mode, it searches for BATCH.
It searches the SUBSCHEMA-CTRL records in descending order of version number, and stops at the first version it finds that has the target MODE in it.
If it does not find one, it repeats the search but this time it stops at the first one that has no mode.