Dictionary/3000 Reference Manual (32244-90001)

Chapter 7 241
The Dictionary DICTCDE Utility
The DICTCDE Main Prompt
Generating Code for Elements
To generate source code for element definitions, enter E in response to the main prompt.
DICTCDE will then prompt for the element name:
Element name>
Enter the name of the element to be extracted from the Dictionary. Only one element may
be extracted at a time. (You may not enter more than 1 element name in response to this
prompt.) DICTCDE then prompts for the copylib module for the source code for the
specified element:
Copylib module for element name >
Enter the name of the copylib module for this element. If [[RETURN]] is pressed in
response to this prompt, no code will be generated for this element and DICTCDE will
return to the main prompt.
After the copylib module has been defined for the element, DICTCDE will prompt for the
following:
Prefix for data items in element name >
Enter the prefix to be used as the COBOL identifier for any child elements this element
may have. The prefix can be up to 8 characters long and must begin with a letter to be a
valid COBOL identifier. When a prefix is assigned to a child element, that element can be
uniquely identified with its parent element. For example, for the parent element
RECORD1, the following code is generated if the prefix REC1- is entered in response to
this prompt:
000100
000200 01 RECORD1.
000300 05 REC1-FIELD1 PIC X(2).
000400 05 REC1-FIELD2 PIC X(8).
000500 05 REC1-FIELD3 PIC X(6).
If the specified element does not have any related child elements, the prefix will be
ignored. If [[RETURN]] is pressed in response to this prompt, the code is generated
without any prefixes assigned to the child elements (if there are any). The code is echoed to
the terminal as it is written in the WORKING-STORAGE record.