HP System Dictionary/XL COBOL Definition Extractor (32257-90001)
4-:4
Responses to SDCDE Prompts
At any SDCDE prompt, you can enter one of the following special responses:
? Displays HELP messages associated with the current prompt.
]] Returns to the command prompt.
] Moves you back to the previous prompt. If there is no previous prompt, then the current
prompt is reissued.
@ Causes SDCDE torespond asif youhave entered[[RETURN]]at allprompts followingthe
current one.
^Y Equivalent to "]]" at prompts.
Alias Attribute Values
System Dictionary allows you to assign alias attribute values to any entity or relationship. SDCDE
recognizes a limited set of alias attributes (cobol-alias, image-alias, standard-alias, and vplus-alias). You
can select one of these aliases with the ALIAS parameter of the OPTIONS command. SDCDE only
recognizes these aliases when you assign them to entities of the types listed in Table 4-1 or assign them to
relationships of the type RECORD contains ELEMENT or ELEMENT contains ELEMENT. When you
assign an alias to an entity, SDCDE interprets the alias as an alternate name for the entity, and uses the
name in place of the entity name in the generated source code. When you assign an alias to a relationship,
SDCDE interprets it as an alternate name for the second entity in the relationship. If a given entity has
two values for the same alias attribute, one at the entity level and one at the relationship level, the
relationship level attribute takes precedence.
For example, suppose you have the relationship CUSTOMER-NAME contains LAST-NAME of type
ELEMENT contains ELEMENT. The LAST-NAME entity has a cobol-alias value of LAST-NAME-ITEM,
and the relationship has a cobol-alias value of CUSTOMER-LAST-NAME. If the ALIAS parameter of the
OPTIONS command is set to COBOL, then SDCDE generates the CUSTOMER-NAME item as follows:
01 CUSTOMER-NAME
05 CUSTOMER-LAST-NAME
Note that SDCDE uses the relationship level alias rather than the entity level alias or the entity name.
Generating IMAGE-DATABASE Definitions
If you specify IMAGE-DATABASE as the entity type in the GENERATE command, a complete set of
RECORD Record name Suffix -DATA
ELEMENT Record name
(If ELEMENT contain another ELEMENT)
Suffix -ELEM
HP-CONDITION-NAME Condition name constant Prefix CN-
Table 1: COBOL Prefixes and Suffixes
Entity Type COBOL Data Type
Prefix/
Suffix
Prefix/
Suffix
Name