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


FIND_COUNTS—Query Find Counts

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

The FIND_COUNTS assignment statement retrieves values that were set by the most recently entered FIND or RFIND command, and places these values in variables.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(var1,var2)-- = --FIND_COUNTS----------------------><

var1
The name of a variable to contain the number of strings found. The number of strings is an 8-digit value that is left-padded with zeros.
var2
The name of a variable to contain the number of lines on which strings were found. The number of lines on which strings were found is an 8-digit value that is left-padded with zeros.

Return codes

0
Normal completion
12
Invalid command format
20
Severe error

Examples

To find all occurrences of && in the line labeled .A and loop through and process them:
ISREDIT FIND .A .A && ALL
ISREDIT (FINDS) = FIND_COUNTS
DO WHILE &FINDS > 0
  ...
END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014