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
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 .
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 .
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.