Generating a Copybook

You can generate Copybooks to obtain COBOL descriptions of Data Structures in a file. Each description is stored in a COBOL source library and can be integrated into programs with the COPY statement.

Before you begin

To generate a Copybook, you must have created an instance of the Copybook entity.

Procedure

You can generate Copybooks in two different ways:
  • Enter an rpp –generate command line from a command prompt.
  • Right-click a Copybook in the Design Explorer view and select Generate > Copybook generation.

Results

The generation produces a .cpy file under the Copybook instance in the Design Explorer view. To see its content, right-click the file and select Open with > PDP COBOL COPY Editor.

The generation also produces the corresponding .cpypdp metadata file. This file can be viewed in the Package Explorer view. It must not be edited but must be assigned the same version number as the other generated files.


Feedback