Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.103.3 RENAME Examples

The following example applies to the RENAME command.

A function uses 2 customer master files called CUSMST1 and CUSTMST2. Both contain field CUSTNO. Rename CUSTNO in CUSMST2 so that it is called CUSTNO2:

   RENAME FIELD(#CUSTNO) FROM_FILE(CUSTMST2) WITH_NAME(#CUSTNO2)