If you generate a COBOL Program or COBOL Copybook, you
obtain COBOL code. If you generate a Source Code, you obtain a code
other than a COBOL code.
Before you begin
You can first decide where the files are to be generated.
Procedure
You can generate instances in different ways: - Right-click a COBOL Program, COBOL Copybook, or Source Code
in the Design Explorer view. Select Generate,
and Generate COBOL Code for a COBOL Program
or COBOL Copybook, or Generate Source Code for
a Source Code.
- Click
in the Design view
of the instance. To be able to do so, you must have previously generated
the instance a first time and opened its code in the PDP COBOL editor.
Results
A progress information message box is displayed until the
generation is complete.
The generation produces a file under
the instance in the
Design Explorer view:
- A .cbl file for a COBOL Program,
- A .cpy file for a COBOL Copybook,
- A file whose extension is indicated in the called Skeleton or
is the name of the called Skeleton, for a Source Code.
The generation replaces all the properties with their
values. Furthermore, if Static Micropatterns have been inserted in
the code, they are replaced with the corresponding code lines, if
these Static Micropatterns have been defined and described.