Names Refactoring

This refactoring is intended to be used as part of a legacy code clean-up project. It is unlikely to be used on a day-to-day basis.

This refactoring allows you to automatically:

  • set the case on table and field names to uppercase or lowercase
  • add the table name qualifier to unqualified field names
  • expand abbreviated table and field names

Usage

  1. In the Navigator view, select the files, directories, and/or projects to be refactored.
  2. From the Navigator view's context menu, choose ProRefactor > Names (table and field) Refactoring.
  3. The Names Refactoring wizard will be presented, where you are required to choose an empty output directory for the source code that gets changed.

This refactoring checks if an include file is changed multiple times for multiple compile units. If the changes are different for different compile units, then the include file is not written to the output directory, and warning messages are issued.

Example Output

Using "sports2000" schema, we automatically refactored this:

FIND FIRST CUST.
DISPLAY BAL.

into this:

FIND FIRST customer.
DISPLAY customer.balance.