Previous Topic: PROFILE CommandNext Topic: RESET Command


RCHANGE Command

RCHANGE

The RCHANGE command repeats the last CHANGE command that was executed.

The EDITOR begins searching at the first line of the display. When it reaches the bottom of data, the message “BOTTOM OF DATA REACHED” appears in the top line of the screen.

The default keys are PF6 and PF18.

Using the RCHANGE and RFIND PF Keys to Selectively Change Strings

You can use the RFIND PF key in conjunction with the RCHANGE PF key to selectively change strings. For example, consider the following sequences:

First Sample RFIND-RCHANGE Sequence

Part

Command

Description

Part 1

CHANGE Work-Name-1 Work-Name-2

In Part 1, you enter the CHANGE command to change the next occurrence of Work-Name-1 to Work-Name-2.

Part 2

RFIND key

In Part 2, you want to find the next occurrence of Work-Name-1, but you are not sure if you want to change the string. By pressing the RFIND key, the next occurrence of Work-Name-1, which was specified in the CHANGE command during Part 1 is found.

Part 3

RCHANGE key

In Part 3, you want to change the occurrence of Work-Name-1 that was found during Part 2 to Work-Name-2. By pressing the RCHANGE key, the occurrence is changed.

Part 4

RFIND key

RFIND key

In Part 4, you press the RFIND key to find the next occurrence of Work-Name-1. This time you do not want to change the string, so instead of pressing the RCHANGE key, you press the RFIND key again. The next occurrence of Work-Name-1 is found.

Second Sample RFIND-RCHANGE Sequence

Part

Command

Description

Part 1

CHANGE Work-Name-1 Work-Name-2 RFIND key

In Part 1, you want to find the next occurrence of Work-Name-1, but if you are not sure if you want to change it to Work-Name-2. If you key in the CHANGE command and press the RFIND key instead of the ENTER key, the RFIND is executed. The next occurrence of Work-Name-1 that was specified in the CHANGE command is found.

Part 2

RFIND key

In Part 2, you decide that you do not want to change the string that was found during Part 1, press the RFIND key. The next occurrence of Work-Name-1 is found.

Part 3

RCHANGE key

In Part 3, you want to change the string that was found during Part 2, press the RCHANGE key. This changes Work-Name-1 to Work-Name-2.