Useful list of TSO/ISPF Commands

1) To view the structure (details like starting position, end position, length and type of fields) of a copybook – This can be viewed from FILEAID option 8.

2) To Copy a member from one PDS to Another:

Open the first PDS using 3.4, and type C before the member and ENTER it will ask for the target PDS name, there give the PDS name.It will be copied by creating the Member with same name.

3) To copy one entire PDS to another New PDS

Open the source PDS using 3.4 option, and type CO before PDS name, then it will ask for the target PDS, Give the target PDS, it creates and copies the source to Target.

Note: Once you give the CO and press enter it displays all the members in that PDS. There you can select the members you want to copy by giving the S before to that member.If you want to copy all the members give S * in the command line then it selects all the members in that PDS.

4) In TSO to search a member from all of your PDS’s

  • Go to 3.4 Type one PDS in your list
  • Append all your PdS in your list by using Append command
  • Type MEM “MBR Name” in the command line.

The result will show the datasets contains that particular member.

5) If you want to find all the members contain a particular string, Then

  • Open the PDS using 3.4
  • Type SRCHFOR ‘string’ in the command line.
  • It shows all the members containing that string(press enter by putting the cursor on the PROMPT )

6) TSO ISPVCALL STATUS to view the version of the system software.

In SPOOL give the command /d prod. It gives the versions of system and sub systems.

7) TSO command to find the latest version of the GDG.


8) While trying to open any member in a PDS, we sometimes come across

“member in use” message. In that situation, if you want to know who is using the member currently, press F1 twice.

9) Suppose you are in a ISPF Screen and want to know in which TSO Region ( Development, Production, or other TSO regions) you are now .

Issue on the command line : SAREA

10) To find the last datasets that you have accessed.

  • GO TO ISPF 3.4 option.
  • On the top, there is a MENUBAR. Select REFLIST
  • Select Option 1 in it.

Using this option you can find out the last 30 datasets that you have accessed.

11) To replace a string in a Program/member

Type C ALL ‘string1’ ‘string2’

12) To replace a string in a program from specific line number(linenum1) to another line number(linenum2)

– Put .A at linenum1 & .B at linenum2

– Type C ALL ‘string1’ ‘string2’ .A .B

It replaces all string1 with strng2 between the two line numbers(not the entire program)

13) If you open the multiple screens in ISPF, to navigate between those you need to type the below commands:

If you want open the 1st screen type 1 in command line and press F9, for 2nd screen 2 and F9 etc.

If you want to see all the opened screens type LIST and press F9. Type S before the screen you want to open and press enter.

14) To purge multiple jobs in SDSF:

Enclose all the jobs that needs to be purged with ‘//’ and ‘//P’ as shown below and press enter which inturn purges all the enclosed spool listings.

15) ISPF Log can be view from Option 7.5 . It gives the latest performed operations.

Leave a Reply

Your email address will not be published. Required fields are marked *