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.
- 1 View
- If the cursor is positioned on a valid File Manager resource name, then an ISPF
view session is invoked for the resource. File Manager is used for resources not
supported by ISPF view.
If the data set is partitioned, and a generic member name or no member name is specified, then an extended member list with the default VIEW is produced.
If the cursor is positioned on a DD name for concatenated partitioned data sets, then an extended member list with the default VIEW is produced.
- 2 Edit
- If the cursor is positioned on a valid File Manager resource name then an ISPF
edit session is invoked for the resource. File Manager is used for resources not
supported by ISPF edit.
If the data set is partitioned and a generic member name or no member name is specified, then an extended member list with the default EDIT is produced.
If the cursor is positioned on a DD name for concatenated partitioned data sets, then an extended member list with the default EDIT is produced.
- 3 Select
- If the cursor is positioned on a valid File Manager resource name then a File Manager selection list for matching resource names is 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 are inserted at the same start location on new inserted lines. Note: For HFS directories S selects and / displays nested directory entries.
- 4 Dslist
- If the cursor is positioned on a valid data set name, then an ISPF data set list is produced for data sets matching the
name.
If the cursor is positioned on a DD name, then an ISPF data set list is produced containing all the corresponding cataloged data sets.
If the cursor is positioned on a UNIX path or file name, then a UNIX directory list is produced.
Note:- To produce an ISPF data set list for up to 30 data set names referenced in the current view or edit session, press the
function key with the value 4 in the command line. The data set names are determined from the non-excluded lines as
follows:
- JCL Keywords DSN= , JCLLIB and File Manager data set name keywords for $$FILEM statements are used.
- Search Reports: All the search data set names listed on the report.
- If the above conditions are not met, then the first word of each line is examined. If it contains a cataloged or generic data set name, then it is added to the list.
- To produce a UNIX directory list for up to 30 path or file names referenced in the current view or edit session, press
the function key with the value 4U in the command line. The path or file name is determined from the non-excluded
lines as follows:
- JCL Keyword PATH= will be used.
- Search Reports: All the search file names listed on the report.
- If the above conditions are not met, then the first word of each line is examined. If it contains a path or file name, then it is added to the list.
- To produce an ISPF data set list for up to 30 data set names referenced in the current view or edit session, press the
function key with the value 4 in the command line. The data set names are determined from the non-excluded lines as
follows:
- 5 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 in a view or edit session..
- 6 ALL
- This shows all records in the current view or edit session that contain the word the cursor is positioned on.
- 7 FIRST
- This finds the first occurrence of the word the cursor is positioned on.
- 8 PREV
- This finds the previous occurrence of the word the cursor is positioned on.
- 9 NEXT
- This finds the next occurrence of the word the cursor is positioned on.
- 10 LAST
- This finds the last occurrence of the word the cursor is positioned on.
- 11 RSearch
- This displays the Enhanced Search Command panel with the DSNs field populated with the string name that you are positioned on.
- 12 PDSE2
- This displays the PDSE Workbench member list display for the cursor positioned data set name.
- 13 This displays one of the following options:
-
- Create
- Allocates a new data set when the cursor-positioned data set name does not exist.
- Change
- Changes data set attributes when the cursor-positioned data set name is a non-VSAM data set. For example, resize or convert a PDS to a PDSE, PDSE to PDSE2, and vice versa.
- List
- Invoke the File Manager catalog services dialog when the cursor-positioned data set name is a VSAM data set.