The steps to generate the COBOL of a Program, Screen, or Server

You can generate a Program, Screen, or Server either in Pacbase or in Rational Programming Patterns (local generation). If you generate in Pacbase, you obtain a complete generated code. This code includes both the code produced by the generation of the design, and the code produced by the generation of the specific insertions. You must run the migration help function to migrate this complete code to your local workspace. After the migration, the complete source is available in your local workspace. The PDP COBOL editor clearly differentiates the specific code from the generated code.

Procedure

Results

The local generation of a Program, Screen, or Server produces the following files:
  • A .cbl file that is nested under the Program, Screen, or Server instance in the Design Explorer view. If you right-click it and select References > Subreferences, the instances involved in this file generation will be automatically displayed in the References view.
  • A map description file for a Screen (.map, .bms, or .mfs) that is nested under the Screen instance in the Design Explorer view.
  • A metadata file of the generated design (.cblpdp) and a metadata file of the map for a Screen (.mappdp, .bmspdp, or .mfspdp). These files can be viewed in the Package Explorer view: They must not be edited but must be assigned the same version number as the other generated files.
Important:

These files are generated under the name indicated in the COBOL program ID (for Programs) or Program external name (for Screens and Server) of the Definition. The name of the generated file can then differ from the instance name.

By default, the generated files are stored with the corresponding design files. However, you can indicate a root path to separate the generated files from the design files in the generation project. You can also change the generation project and folder. For information, see the link that explains the generation target of a Program, Screen, or Server.

Feedback