Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SEEK—Seek a Data String, Positioning the Cursor z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
The SEEK macro command finds one or more occurrences of a search string without changing the exclude status of the line. SyntaxMacro command syntax .-.ZFIRST--.ZLAST-. .-NEXT--. >>-ISREDIT--SEEK--string--+-----------------+--+-------+--------> '-labela--labelb--' +-ALL---+ +-FIRST-+ +-LAST--+ '-PREV--' .-CHARS--. >--+--------+--+----+--+---------------------+----------------->< +-PREFIX-+ +-X--+ +-start_col-----------+ +-SUFFIX-+ '-NX-' '-left_col--right_col-' '-WORD---'
DescriptionUse the FIND macro command instead of SEEK if you want to locate a string and change the exclude status of the line that contains that string at the same time. You can use SEEK to find a search string, change it with CHANGE, and then exclude it from the display with EXCLUDE. To find the next
occurrence of the letters ELSE without specifying
any other qualifications, include this line in an edit macro:
Since
no other qualifications were specified, the letters ELSE can
be:
To find the next occurrence
of the letters ELSE, but only if the letters are
uppercase:
This type of search is called a character string search (note the C that precedes the search string) because it finds the next occurrence of the letters ELSE only if the letters are in uppercase. However, since no other qualifications were specified, the letters can be found anywhere in the data set or member, as outlined in the preceding list. For more information, including other types of search strings, see Finding, seeking, changing, and excluding data. Return codes
ExamplesThe example shown here finds the
last occurrence in the data set of the letters ELSE.
However, the letters must occur on or between lines labeled .E and
.S; they must be the last four letters of a word; and they must be
found in an excluded line.
The
example shown here finds the first occurrence of the letters ELSE that
immediately precedes the cursor position. However, the cursor must
not be positioned ahead of the lines that are labeled .E and .S. Also,
the letters must occur on or between lines labeled .E and .S; they
must be stand-alone characters (not part of any other word); they
must be found in a non-excluded line; and they must exist within columns
1 and 5:
|
Copyright IBM Corporation 1990, 2014
|