Similar to Compare and Extended Compare, we can specify process options and process DSNs for frequently used search options.
This option (Option 6 from ISPF Main Menu) is similar to the Shell in UNIX or the MS-DOS prompts in the MS-Windows environment. You can enter a TSO command or execute a REXX routine without exiting ISPF.
Note 1: As discussed in earlier sessions, File transfer from the MF to a PC or Vice-versa is done with a TSO command. To transfer files while in ISPF, you must be at the command prompt.
Note 2: Other way to execute a TSO command from ISPF is to prefix a "TSO" with the command at any of the primary command field.
Example 1: To search a small case string in all the members of a PDS.
Result: Search small letter string with Search all option ('*')
If no string found in search, "No string found" message displayed in right side top of the screen.
If string found in search, result will be displayed like below.
'TESTOLD' is the PDS member name and the line will be displayed below with line number(i.e. 6). Summary section also displayed at the bottom of the report.
Example 2: To search a small case string in selected members of a PDS.
STEP 1: Search small letter string with blank option.
New screen will be populated to select the member in the PDS for search.
Type 'S' in line command to select the member and type 'END' in command line. Then press enter.
Result: Search small letter string with blank option.
Example 3: To search a capital string in all the members of a PDS.
Step 1: Search capital string with Search all option ('*').
Result: Search capital string with Search all option ('*')
Restrict your search for a string “SYSOUT” available only in the column 1 to 30 of the dataset RACFID.TEST.PDS(TEST).
Using options menu to edit and save the searachfor statements.
Use the below process statement to achieve the above search.
Type "END" in command line and Press enter. you will see below screen with success message on right side top of the scrreen.
Result:
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!