Rational Developer for System z, Version 7.6

PDP LPEX COBOL editor

The Pattern Driven Programming (PDP) editor provides additional functions on top of those already provided by the standard RDz LPEX editor. It enables you to modify the COBOL code while clearly seeing the origin of all the code lines (generated lines, macro lines or specific code lines), the deleted/overwritten lines, and the potential problems detected by the reconciliation.

To see the content of this editor, you must have generated an instance. Then, in the Design explorer view, right-click on the corresponding .cbl file, which contains the generated Cobol, and select Open with > Pdp Cobol System z LPEX Editor in the popup menu.
Tip: You must be familiar with the concepts explained in Generating the VA Pac COBOL and modifying it: the various steps before reading this help.

Here you can modify the generated code to adapt it to your particular needs. Modifying the generated code includes inserting code in the generated code, removing generated code or overwriting generated code.

In order to help you make these user specific changes, all the advanced functions of the RDz LPEX COBOL editor are available (cut/copy/paste, a great array of possible selections, filter view, debug, compare with, local syntax check, content assist...).

The specific changes will be emphasized by a specific color (which you can change by selecting Window > Preferences > LPEX Editor > Appearance). So for example, a DATE-COMPILED line may be colored because the date coming from the VA Pac source is different from the same line which is output by the local generator. As long as you do not decide otherwise, the line coming from VA Pac is kept.

The PDP coloring, on top of the LPEX coloring, enables you to know the origin of the lines. If a line is:
  • Gray, it is a generated line,
  • Khaki, it is a Macro line.
You can change these PDP default colors by selecting Window > Preferences > Pattern Driven Programming.
Note: You can also also change the default generation skeleton language in the Preferences. The new language will be taken into account upon the next generation.
Two symbols may be displayed in the margin:
  • information is displayed where code lines have been deleted or overwritten. If you click on this symbol, you will see the deleted line or the line overwritten by the current line.
  • warning is displayed by the reconciliation (the process which integrates, after a generation, the new design of an instance with the user specific changes) on each line where it has detected a potential problem (ex: if the reconciliation is not sure where it should place the specific code because several locations are possible, or if the overwritten generated code has changed...)

Terms of use | Feedback

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