HP System Dictionary/XL COBOL Definition Extractor (32257-90001)
4- 36
COBOL record definitions is generated for the data sets contained in the given database. To determine
whether to generate all data sets and constants in one module, or in separate modules, SDCDE issues the
following prompt:
Define all data sets in one module (Y/N) >
If you enter a Y, SDCDE generates all definitions into one module. If you respond with an N, SDCDE
generates each data set definition and the constants into different modules.
Using a Single Module
When you ask for a single module, SDCDE asks for the module name with the following prompt:
Module name for IMAGE-DATABASE data-base-name >
Enter the module name into which you wish to generate all data set and constant definitions. If the
module already exists, the copy library's OPEN-MODE parameter determines whether to append all
generated code to the existing module or to replace it. If you enter a [[RETURN]], SDCDE does not
generate any code for this database and the GENERATE command will be complete.
If you specify the ELEM-QUALIFY parameter of the OPTIONS command, SDCDE responds with one of
the following prompts, depending on the value you specify:
SDCDE attaches the prefix or suffix characters to the elements contained by the data sets. If you enter a
[[RETURN]], SDCDE does not attach a prefix or suffix.
When answers to these prompts are complete, SDCDE starts the source generation process. The database
definition is created for the WORKING-STORAGE SECTION, with each data set record corresponding to
an 01 level COBOL record, and each element contained in the data set record corresponding to the 05 level
element. (See "Generating IMAGE-DATASET definitions" for further explanations regarding data set
generation.)
If you set the QUALIFY parameter of the OPTIONS command to ON, then SDCDE prefixes the COBOL
record name for each data set with the database name.
If you set the CONSTANTS parameter of the OPTIONS command to ON, SDCDE generates the database
name and password constants after the record layouts. SDCDE then generates the data set names and
search item constants. The constant values generated use the image-alias attribute value if one exists,
and the primary name if no image-alias attribute value is found. This rule applies regardless of the value
of the ALIAS parameter of the OPTIONS command.
If you set the COMMON-STORE parameter of the OPTIONS command to ON, all data sets in the database
occupy the same memory space via the REDEFINES clause.
Example
In the following single module example the database name is STORE, ELEM-QUALIFY = PREFIX, and
CONSTANT = ON.
> GENERATE STORE; ENTITY-TYPE=IMAGE-DATABASE.
Value Prompt
PREFIX Element prefix >
SUFFIX Element suffix >
NONE No prompt