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

4- 50
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 form. If you enter a
[[RETURN]], SDCDE does not attach prefix or suffix.
If you set the CONSTANTS parameter of the OPTIONS command to ON, SDCDE issues a prompt for
generating a field number table for the current form. This prompt has the following form:
Define field number tables (N/Y) >
If you enter a [[RETURN]] or an N, SDCDE does not define a table. If you enter a Y, SDCDE defines a field
number table for the form. In all cases, SDCDE issues a prompt to determine if the numeric fields of the
form should be defined with a PIC 9 or a PIC X. The prompt has the following form:
Define numeric fields as PIC 9 or PIC X (9/X) >
If you enter a [[RETURN]] or a 9, SDCDE uses a PIC 9 description. If you enter an X, SDCDE uses a PIC
X description.
When you complete the answers to these prompts, SDCDE generates the code in the specified module for
the form definition. If you set the CONSTANTS parameter to ON, descriptions for a form name and field
number table are generated. The form name constant value is taken from the vplus-alias attribute if one
exists. If a vplus-alias attribute does not exist, the primary name is used. The field numbers for the field
number table are obtained from the field-number attribute of the FORM contains ELEMENT relationship.
Example
In the following example, the form name is CUST-ORDER, ELEM-QUALIFY = PREFIX, and
CONSTANTS = ON.
Module name for FORM CUST-ORDER > ORDFORM
Element prefix > [[RETURN]]
Define field number tables (N/Y) > Y
Define numeric fields as PIC 9 or PIC X (9/X) > 9
000100
000200 01 CUST-ORDER-DATA.
000300 05 CUST-ACCT PIC X(8).
000400 05 PROD-NO PIC X(15).
000500 05 QUANTITY PIC 9(8).
000600 05 UNIT-PRICE PIC X(12).
000700 05 TOTAL PIC X(12).
Value Prompt
PREFIX Element prefix >
SUFFIX Element suffix >
NONE No prompt