Generating ELEMENT Definitions [ HP SYSTEM DICTIONARY XL COBOL DEFINITION EXTRACTOR Reference Manual ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL COBOL DEFINITION EXTRACTOR Reference Manual
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:
Module name for ELEMENT element-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 this
element 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:
Value Prompt
PREFIX Element prefix >
SUFFIX Element suffix >
NONE No prompt
SDCDE attaches the prefix or suffix characters to all of the elements
contained by the element. 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 element definition.
Example
In the following example, the element name is DATE and ELEM-QUALIFY =
PREFIX.
Module name for ELEMENT DATE > DATEDESC
Element prefix > DATE-OF-
000100
000200 01 DATE-ELEM.
000300 05 DATE-OF-YEAR PIC X(4).
000400 05 DATE-OF-MONTH PIC X(2).
000500 05 DATE-OF-DAY PIC X(2).
000600
MPE/iX 5.0 Documentation