z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RCHANGE—Repeat a Change

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The RCHANGE command repeats the change requested by the most recent CHANGE command.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--RCHANGE--------------------------------------------><

Description

You can use this command to repeatedly change other occurrences of the search string. After a string NOT FOUND message appears, the next RCHANGE issued starts at the first line of the current range for a forward search (FIRST or NEXT specified) or the last line of the current range for a backward search (LAST or PREV specified).

Return codes

0
Normal completion
4
String not found
8
Change error (string2 longer than string1 and substitution was not performed on at least one change)
12
Syntax error
20
Severe error

Examples

To perform a single-line change and then repeat the change from the top if the string was not found:
ISREDIT CHANGE C'.  the' C'.  The' 1 8
IF &LASTCC = 4 THEN—
  ISREDIT RCHANGE

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014