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


Finding, seeking, changing, and excluding data

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

FIND, SEEK, CHANGE, and EXCLUDE allow you to find a specified search string, change one search string to another, or exclude a line containing a specified search string. These commands provide powerful editing functions because they operate on a complete data set rather than on a single line.

The characteristics of each command follow:
FIND
Causes all lines that it finds to be displayed, and moves the cursor (scrolling if necessary) to the first occurrence of the search string.
SEEK
A special form of FIND that can only be used in an edit macro. It is different from FIND in that it does not change the exclude status of the lines found.
CHANGE
Causes the same effect as FIND, but it also has a second string operand (string2). During a search, whenever string1 is found, the editor replaces that string with string2. Data to the right is shifted, if necessary.
EXCLUDE
Causes lines that match the search not to be displayed. These lines remain in the data, however. Unlike FIND and CHANGE, it does not require a search string if you use the ALL operand. EXCLUDE ALL is often used with FIND and CHANGE because they cause excluded lines to be redisplayed. Use RESET to cause all lines to be redisplayed.

The scrolling and positioning of the string can be controlled using the Edit_Settings action bar choice or the EDITSET primary command when editing the data. See EDITSET—Display the Editor Settings Dialog for more information.

The syntax of each command is a variation of that listed here. See the command descriptions in Edit primary commands and Edit macro commands and assignment statements for the exact syntax.
Read syntax diagramSkip visual syntax diagram
                         .-.ZFIRST--.ZLAST-.  .-NEXT--.  .-CHARS--.                                    
>>-+-string-----------+--+-----------------+--+-------+--+--------+--+----+--+---------------------+-><
   '-string1--string2-'  '-labela--labelb--'  +-ALL---+  +-PREFIX-+  +-X--+  +-start_col-----------+   
                                              +-FIRST-+  +-SUFFIX-+  '-NX-'  '-left_col--right_col-'   
                                              +-LAST--+  '-WORD---'                                    
                                              '-PREV--'                                                

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014