Dictionary/3000 Reference Manual (32244-90001)

238 Chapter7
The Dictionary DICTCDE Utility
The DICTCDE Main Prompt
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 form 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.
After the source code has been generated for the form, DICTCDE will return to the main
prompt.
MPEF and MPER Files. If the specified file is defined in the Dictionary as MPEF,
DICTCDE will issue the following message:
File
filename
is an MPE file.
If the specified file is defined in the Dictionary as MPER, DICTCDE will issue the
following message:
File
filename
is an MPE relative file.
The next prompts issued by DICTCDE allow you to choose what COBOL program sections
are to be defined for the file. DICTCDE allows you to generate source code for the
ENVIRONMENT DIVISION and the DATA DIVISION of a COBOL program.
Copylib module for SELECT statement>
Enter the copylib module for the code generated for the SELECT statement. The SELECT
statement identifies the file to be used in a program and is part of the ENVIRONMENT
DIVISION of a COBOL program. When a copylib module is entered in response to this
prompt, DICTCDE will then prompt for the copylib module for the next program section. If
[[RETURN]] is pressed in response to this prompt, no SELECT statement will be
generated, and DICTCDE will continue to prompt for the copylib module for the next
program section.
Copylib module for FILE SECTION entry>
Enter the copylib module for the code generated for the FILE SECTION entry. The FILE
SECTION defines the file to be used in the program and is part of the DATA DIVISION of
the program. The record layout for the file (the source code for the data items in the file) is
defined in this section. However, you may choose to generate the record layout for the file
in WORKING-STORAGE, instead of in the FILE SECTION. If a copylib module is entered
for the FILE SECTION, but you choose to generate the record layout for the file in
WORKING-STORAGE, the FD statement would contain a single, 01-level definition. This
definition is generated to serve as a buffer for READs and WRITEs to the file. If a copylib
module is not entered for the FILE SECTION, the record definition for the file may still be
generated in WORKING-STORAGE.
If [[RETURN]] is pressed in response to this prompt, no FILE SECTION entry will be
generated and DICTCDE will continue to prompt for the copylib module for the next
program section. When a copylib module is entered for the FILE SECTION, DICTCDE
prompts for the following:
Define
filename
in FILE SECTION as an FD or SD file (F/S)>
Enter F to define filename as a data file. Enter S to define filename as a sort file. If
[[RETURN]] is pressed in response to this prompt, filename will be defined as a data file.
Note that the FILE SECTION for an MPER file can only be generated as an FD file.