Dictionary/3000 Reference Manual (32244-90001)

Chapter 7 237
The Dictionary DICTCDE Utility
The DICTCDE Main Prompt
the next form in the forms file.
After the copylib module has been defined for a form, DICTCDE issues the following
prompt:
Prefix for data items in
formname
>
Enter a prefix to be used in the COBOL identifier for the data item in the form. The prefix
you choose can be up to 8 characters long and must begin with a letter to be a valid
COBOL identifier. If you would like a hyphen between the prefix and the data item name,
be sure to include the hyphen as part of the prefix you enter. (See Examples of Generated
Code later in this section for an example of data items generated with prefixes.) When a
prefix is assigned to a data item, that data item can be referred to uniquely in a COBOL
program without using the COBOL OF clause.
If [[RETURN]] is pressed in response to this prompt, the source code for the data set is
generated without a prefix assigned to the data items. The code is echoed to the terminal
as it is written to the copylib module. DICTCDE then prompts for the copylib module for
the next form in the forms file.
After the source code has been generated for the forms file, DICTCDE will return to the
main prompt.
VPLUS Forms. If the specified file is a VPLUS form, DICTCDE will issue the following
message and prompts:
File
formname
is a VPLUS form.
Note that the next prompts are also issued when the file is a forms file.
Define field number tables (N/Y)>
Enter Y to generate field number tables for the specified form. Enter N or press
[[RETURN]] if you do not want field number tables generated.
Define numeric fields as PIC 9 or PIC X (9/X)>
Enter X to define every numeric field in the specified form as PIC X. Enter 9 or press
[[RETURN]] to define every numeric field as PIC 9. (Remember, if 9 is entered in response
to this prompt, the form must only allow numeric data to be entered in those fields.)
DICTCDE next prompts for the copylib module.
Copylib module for
formname
>
Enter the copylib module for the specified form. If [[RETURN]] is pressed in response to
this prompt, the source code for this form will not be generated and DICTCDE will
reprompt for a file name. (The field number tables will not be generated for the form
either.)
After the copylib module has been defined for a form, DICTCDE issues the following
prompt:
Prefix for data items in
formname
>
Enter a prefix to be used in the COBOL identifier for the data items in the form. The prefix
you choose can be up to 8 characters long and must begin with a letter to be a valid
COBOL identifier. If you would like a hyphen between the prefix and the data item name,
be sure to include the hyphen as part of the prefix you enter. (See Examples of Generated
Code later in this section for an example of data items generated with prefixes.) When a