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


RFIND—Repeat Find

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

The RFIND macro command locates the search string defined by the most recent SEEK, FIND, or CHANGE command, or excludes a line containing the search string defined by the previous EXCLUDE command.

The RFIND command can be used repeatedly to find other occurrences of the search string. After a string NOT FOUND message appears, the next RFIND 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).

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--RFIND----------------------------------------------><

Return codes

0
Normal completion
4
String not found
12
Syntax error
20
Severe error (string not defined)

Examples

To find a character string, process it, and then repeat the operation for the rest of the data:
ISREDIT FIND FIRST C'. the'
SET RETCODE = &LASTCC;
DO WHILE &RETCODE = 0
 
    ...
 
  ISREDIT RFIND
  SET RETCODE = &LASTCC;
END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014