Managing the warnings in the Problems view

You manage the warnings in the Problems view by applying quick fixes to them.

To apply a quick fix, right-click a warning and select Quick fix. In the Quick fix wizard, select the appropriate quick fix and click Finish. The following quick fixes are available:
  • Remove warning. If you select this quick fix, the warning is removed and the line is displayed like all the other specific lines. However, if this difference is detected again upon the next generation, this warning will be displayed again.
  • Validate the migration. If you select this quick fix while the PDP editor is open, the Compare editor opens. This editor displays both the Pacbase code and the local code. It emphasizes all the differences that are detected in these two codes.
    The local code can be modified. You can then copy the lines of the Pacbase file into the local file. You can proceed in two ways:
    • Copy all the nonconflicting changes by clicking the corresponding button in the toolbar. You must manage the remaining changes individually.
    • Select a change in the Pacbase file and copy it into the local file. You can place the cursor at the insertion point or click the toolbar button with which you can copy the currently selected change.
    Note: If you do not want to keep your changes, you can close the PDP COBOL editor without saving.

    After this manual validation, run a new local generation. As the migration help function is disabled, the warnings are no longer calculated. You must then save the locally generated code. It replaces the Pacbase generated code. You can then work on the instance.

    If you select this quick fix while the PDP COBOL editor is closed, the local code is implicitly saved. The local code automatically replaces the Pacbase generated code and the warnings are removed.

    However, if the PDP COBOL editor is open, you must save the code.

  • Show differences. If you select this quick fix, the Rational® Developer for System z® and Rational Developer for AIX® and Linux Compare editor opens. This editor displays both the Pacbase code and the local code, in a fragmented way. It emphasizes the differences that are detected in the two codes.

    With this quick fix, the code of the locally generated file cannot be modified directly in the Compare editor.

    Note: The contextual menu of the compare editor contains standard options to copy, find and replace, and customize the display of the differences.
    Moreover, the following two options are specific to Rational Programming Patterns:
    • Ignore comments: This option only applies to the display of the migration differences. If it is selected (default value), the differences in the comments are not flagged. If you change the selection of this option in the compare editor, you must close and open the editor again to take the modification into account. Moreover, this modification is saved and changes the default preference.
    • Ignore EXIT: If this option is selected (default value), the differences in the presence or absence of the EXIT statements after the tags are not flagged in the compare editor. Changing the selection of this option in the compare editor immediately modifies the display of the differences. However, it does not modify the default preference.

    The default values of these two options are selected in the COBOL comparison preferences that are available from Window > Preferences > Pattern Driven Programming > Pacbase Patterns.

  • Show differences on the whole file. This quick fix is identical to the previous quick fix, except that the Compare editor displays the file content as a whole.

    With this quick fix, the code of the locally generated file cannot be modified directly in the Compare editor.


Feedback