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:

   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help
 ─ ┌──────────────── ZINREC ─────────────────┐ ─────────────────────────────────
 V │  Z Data Tools                           │              Columns 00001 00072
 C │  Edit/View   Utility    Template        │                 Scroll ===> CSR
 0 │ ─────────────────────────────────────   │
 0 │ Command ===>                            │
 0 │                                         │
 0 │ 1  View     View resource               │
 0 │ 2  Edit     Edit resource               │
 0 │ 3  Select   Select resource list        │
 0 │ 4  Dslist   ISPF data set list          │
 0 │ 5  Search   Nested search               │
 0 │ 6  All      Show all occurrences        │
 0 │ 7  First    Find first occurrence       │ TA),DISP=SHR
 0 │ 8  Prev     Find previous occurrence    │ 1))
 0 │ 9  Next     Find next occurrence        │ 1))
 0 │ 10 Last     Find last occurrence        │ CTED(PDDATA),DISP=SHR
 0 │ 11 Rsearch  Search the resource         │ 1))
 0 │                                         │ t TALLY register
 0 └─────────────────────────────────────────┘

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 Z Data Tools resource name then an ISPF view session will be invoked for the resource. Z Data Tools will be used for resources not supported by ISPF view.
Edit
If the cursor is positioned on a valid Z Data Tools resource name then an ISPF edit session will be invoked for the resource. Z Data Tools will be used for resources not supported by ISPF edit.
Select
If the cursor is positioned on a valid Z Data Tools resource name then a Z Data Tools 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.