Generation upgrade
The generation has been enhanced in Rational® Programming Patterns 9.6.1 for Programs, Screens, Servers, Folders, and Communication Monitors. The generated files must then be modified to integrate the new enhancements.
A video is available on YouTube: Upgraded generation in Rational Programming Patterns 9.6.1.
Triggering the 9.6.1 generation
The upgraded version of the generation automatically applies to the instances that are created directly in Rational Programming Patterns 9.6.1 or that are migrated from Pacbase with the 9.6.1 migration process.
- You can click No to keep the COBOL code as is, without any enhancements from the new generation. However, the dialog box will be displayed again each time you will open the code again.
- You can click Yes to apply the new generation.
If some of the files to be impacted are already modified locally and are then present in the Pending Changes view, you are warned that the modifications due to the upgraded generation are to be merged with the current modifications. It is recommended to deliver the current modifications first to clearly isolate the modifications due to the upgraded generation. So, click No to discard the modifications of the upgraded generation and deliver the current modifications.
When you upgrade the generation, the COBOL compare editor opens and outlines the differences between the old and the new generated code.
The COBOL compare editor
The comparison is for information only. You cannot change the new COBOL since it conforms to the upgraded generation.
In the compare editor, you can browse through the differences or changes.
- You can click OK to accept the modifications of the upgraded generation.
A dialog box then lists the files that were impacted by the modifications. The following types of files can be impacted:
- The .cbl files and their corresponding .cblpdp files.
- The designs where the SP Macros were removed from the -CP Lines (for Screens and Business Components).
- The removed SP Macros.
- The Screen map .pdp files (.bmspdp for example). These files are always modified because, even if the maps are not modified, they contain new technical information that is used internally.
- You can click Cancel to discard the modifications. However, the same questions about the upgrade to the new version of the generation will be displayed each time you will open the COBOL file again.
To know all the generation enhancements from the 9.6.1 version, see COBOL code enhancements from version 9.6.1.
Outgoing modifications to deliver
After the old COBOL code is replaced with the new COBOL code, outgoing modifications must be delivered. The Pending Changes contains the impacted files in their respective Rational Team Concert components.
It is recommended to associate the change sets with the same work item. Then, after you deliver, you will be able to quickly find all the files that were impacted by the upgraded generation.