TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

Extended Search


Extended Search Option:

Similar to Compare and Extended Compare, we can specify process options and process DSNs for frequently used search options.

COMMAND

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.

Searchfor all option

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.

Searchfor all option no result

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.

Searchfor all option result

Example 2: To search a small case string in selected members of a PDS.

STEP 1: Search small letter string with blank option.

Searchfor blank option

New screen will be populated to select the member in the PDS for search.

Searchfor blank option member select

Type 'S' in line command to select the member and type 'END' in command line. Then press enter.

Searchfor blank option member selected

Result: Search small letter string with blank option.

Searchfor all option result

Example 3: To search a capital string in all the members of a PDS.

Step 1: Search capital string with Search all option ('*').

Searchfor all option caps string

Result: Search capital string with Search all option ('*')

Searchfor all option caps string result

Restrict your search for a string “SYSOUT” available only in the column 1 to 30 of the dataset RACFID.TEST.PDS(TEST).

Searchfor statements

Using options menu to edit and save the searachfor statements.

Searchfor statements options

Use the below process statement to achieve the above search.

Searchfor statements options cmpcolm

Type "END" in command line and Press enter. you will see below screen with success message on right side top of the scrreen.

searchfor statements save

Result:

searchfor statements result

If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal