Rational Developer for System z, Version 7.5

Generating a Pac Program: special considerations

You must generate a Program if it has never been generated or if its design has been modified.

A generated Program is constituted of three files: The last two files are generated, whereas the first one is automatically created when a Program exists in a project.

To generate a Program, you must:

  1. Open the Navigator view of the Design perspective.
  2. Open the project which contains the Program (suffixed by .pacprogram) to be generated. Two cases are possible:
    • Either the Program has never been generated and:
      • was not imported though the Pacbase batch migration utilities. In this case, only the .pacprogram file is available. Then, the generation will create a .cbl file and a .cblpdp file.
      • was imported though the Pacbase batch migration utilities. In this case, both the .pacprogram and the .cbl file are available. Then, the generation will only create a .cblpdp file. It will not overwrite the .cbl file created by the Pacbase batch migration utilities and will keep it as is.
      In both cases, to generate the Program, you must right-click on the .pacprogram file and select Pattern Driven Programming > Generate COBOL code in the popup menu. The.cbl and.cblpdp files must be located in the same directory, so you must not change their location.
    • Or the Program has already been generated. It means that its associated .cbl and .cblpdp files exist in your workspace. You must generate the Program again if you have modified its design. In this case, you must open its generated .cbl file with the Open with > Pdp COBOL system z LPEX editor. The COBOL editor must remain open and currently selected. Then go to the Pac Design View and click the generate code and trigger reconciliation icon in the toolbar. The newly-generated code will include the new design, while keeping any specific changes. Moreover, the locations of the specific code insertions will be moved to fit the new design at best. Stay in the Pac Design View to resolve the warnings, if any.
Notes:
  • You must be aware that if the Program design is inconsistent, you will not be able to generate it. After each modification in the editors of the instances called in the design, or after each update of the Pac Design View, a control is automatically carried out and if the design is inconsistent, it is impossible to generate.
  • If instances involved in the Program design are being edited and not saved when the generation is launched, the instances saved in memory are taken into account.
  • Any discrepancies detected between the locally generated code and the source generated from Pacbase are displayed in the Problems view.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)