Using F4 from any edit or view session when positioned on a string or word
You can use the F4 function key from any ISPF edit or view session and take advantage of the features provided. This doesn't have to be associated with an enhanced search.
In the following screen we position the cursor on the word ZINREC and press F4:
The selection window is displayed with options that can be selected by number or cursor position and enter. The word or data set name is displayed in the window title. This may be truncated to fit the window, but will not be truncated in the selected process.
The command descriptions are as follows:
- View
- If the cursor is positioned on a valid File Manager resource name then an ISPF view session will be invoked for the resource. File Manager will be used for resources not supported by ISPF view.
- Edit
- If the cursor is positioned on a valid File Manager resource name then an ISPF edit session will be invoked for the resource. File Manager will be used for resources not supported by ISPF edit.
- Select
- If the cursor is positioned on a valid File Manager
resource name then a File Manager selection list for
matching resource names will be produced and you can use the S prefix command
to select one or more names that will be inserted at the current word start
position replacing the current word. If you select more than one these will be
inserted at the same start location on inserted lines.
Note: For HFS directories S will select and / will display nested directory entries.
- Dslist
- If the cursor is positioned on a valid data set name then an ISPF data set list will be produced for data sets matching the name
- Search
- Perform a nested search for all occurrences of the word the cursor
is currently positioned on.
Note: The data sets to be searched will be the active enhanced search resource list if you are editing or viewing as a result of an enhanced search command or the current data set if you are simply editing or viewing a member of a PDS for example:
- ALL
- This will show all records in the current view or edit session that contain the word the cursor is positioned on.
- FIRST
- This will find the first occurrence of the word the cursor is positioned on.
- PREV
- This will find the previous occurrence of the word the cursor is positioned on.
- NEXT
- This will find the next occurrence of the word the cursor is positioned on.
- LAST
- This will find the last occurrence of the word the cursor is positioned on.
- RSearch
- This will display the Enhanced Search Command panel with the DSNs field populated with the string name that you are positioned on.