Renaming a data item or paragraph in a COBOL program

In the System z® LPEX Editor and the COBOL Editor, you can rename a data item or paragraph and references to that data item or paragraph in a COBOL program.

About this task

The Rename operation shows an information screen with the projected warnings and how many data items are going to be changed if the refactor operation is committed. Optionally, another page is shown with a preview of what the source will look like compared to the original source after the refactor operation is accepted.

The preview page shows the Rename function.

Restriction: The following restrictions and limitations apply to the Rename action:
  • The Rename action does not recognize Pseudo SO/SI bytes included in DBCS strings.
  • The Remove noise words and Extract paragraph actions do not work when sequence numbers are present.
  • The Rename action does not work on DBCS variable names.
  • When errors are detected by real-time syntax checking, the Rename action is not available.

Procedure

To rename a data item or paragraph in your COBOL file, complete the following steps:

  1. Select a data item or paragraph name, and right-click. A menu is displayed.
  2. Click Refactor > Rename.
  3. Type the new name, and perform one of the following actions:
    • Click OK.
    • Click Preview after optionally selecting Force preview. A "Found problems" window is displayed.
  4. If you clicked Preview in the previous step, click Continue. A preview window is displayed.
  5. Click OK.

Feedback