Generate Copybook

The Generate Copybook option of the Define Table and View menu allows you to generate COBOL copybooks when a new View is created or an existing View is modified. To generate a copybook for a View, select Option 8 – GENERATE COPYBOOK from the Define Table And View menu to display the following screen and complete the fields described in Table 163.

Figure 145. Generate Copybook Screen
Generate Copybook Screen

Table 163. Generate Copybook Field Descriptions

Field Names

Description

Library Name

Insert the name of the library where the View is kept. You may also enter a number from 1-7 to select a relative library number, a DDNAME or a full dataset name. Pressing <PF1> for help in this field displays a list of all authorized libraries.

View Name

Insert the name of the View for which you wish to create a copybook. Pressing <PF1> for help in this field displays a list of all authorized Views.

Include Command Area

This field indicates whether or not the command area is to be included at the end of the COBOL copybook. It can be set to Y to include the command area or N to exclude it.

Field Name Prefix

This field contains a prefix that will be placed in front of all field names in the COBOL FD (for example, WS-TBXX-)

Copylib Dataset Name

This field contains the COPYLIB dataset name that contains the FD copybooks available to application developers for the compilation of application programs. This is where the copybook will be placed.

Member Name

This field contains the name of the member in the Copylib that will contain the created copybook.

Job Name

This field contains the job name that will appear on the job statement of the batch job that creates the a COBOL copybook.

Accounting Info

This field contains the accounting information that will appear on the job statement of the batch job that creates the COBOL copybook.

Notify

This field contains the notify (User-ID) that will appear on the job statement of the batch job that creates the COBOL copybook.

JCL To Make Copybook

This is the name of the table that contains the skeleton JCL to be submitted to the internal reader when a COBOL FD is created. The table that is delivered for this purpose is TBOLJCL1. It can be modified for your own installation.