HP System Dictionary/XL COBOL Definition Extractor (32257-90001)

4- 58
library module name to be assigned to all code generated for the record. The prompt has the following
form:
Module name for RECORD record-name >
If the given module name already exists in the current copy library, the copy library's OPEN-MODE
parameter determines whether to append all generated code to the existing module or to replace the
existing module. If you enter a [[RETURN]], SDCDE does not generate any code for the record 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 all of the elements contained by the record. If you enter
a [[RETURN]], SDCDE does not attach a prefix or suffix.
When answers to the prompts are complete, SDCDE generates the code in the specified module for the
record definition. If any records explicitly redefine this record, through the RECORD redefines RECORD
relationship, definitions are generated using the REDEFINES clause.
Example
In the following example, the record name is EMPLOYEE-RECORD and ELEM-QUALIFY = PREFIX.
Module name for RECORD EMPLOYEE-RECORD > EMPREC
Element prefix > EMP-
000100
000200 01 EMPLOYEE-RECORD-DATA.
000300 05 EMP-NAME-ELEM.
000400 10 EMP-FIRST-NAME PIC X(15).
000500 10 EMP-LAST-NAME PIC X(20).
000600 05 EMP-SS-NUMBER PIC X(10).
000700 05 EMP-POSITION-TITLE PIC X(50).
000800
Generating ELEMENT Definitions
If you specify ELEMENT as the entity type in the GENERATE command, then SDCDE generates a
COBOL definition for the element with the given entity name.
SDCDE issues a prompt requesting the copy library module name to be assigned to all code generated for
the element. The prompt has the following form:
Value Prompt
PREFIX Element prefix >
SUFFIX Element suffix >
NONE No prompt