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.

TSO LISTCAT LVL(GDG.BASE)

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.

Active ISPF Logical Sessions

. Start a new screen
. Start a new application

Application Name

ID Name Panelid Applid Session Type

S 1 FMDB2 FMN2P2EZ FMN2 3270
. 2* DSLIST ISRUDSM ISR 3270
. 3- ISFPCU41 ISF 3270

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.

NP JOBNAME JobID Owner Prty Queue C Pos SAff ASys Status 
//  JB001A JBU35013 MG109 1 PRINT 3117 
    JB001A JBU35014 MG109 1 PRINT 3118 
    JB001B JBU35015 MG109 1 PRINT 3119
    JB001C JBU35016 MG109 1 PRINT 3120 
    JB001C JBU35017 MG109 1 PRINT 3121 
//P JB001C JBU35018 MG109 1 PRINT 3122

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

 Command ===> Scroll ===> CSR 
********************************* Top of Data **********************************
Time *** ISPF transaction log *** Us

01:26 Start of ISPF Log - - - - Session # 229 -------------------------
01:30 TSO - Command - - HRECOVER 'MG001A.CMD.SOURCE(MEM001)' 
01:35 Utility - Move/Copy - MG001A.CMD.SOURCE(MEM001)' Copied 
01:35 - to 'MG001A.CMD.BKUP(MEM001)'' 
01:35 Utility - Delete - ''MG001A.CMD.BKUP(MEM002)' deleted from volume PR
01:35 TSO - Command - - %@SDSF 
01:36 TSO - Command - - MAP 
01:37 TSO - Command - - MAPLIST 
01:44 TSO - Command - - COMPARE SESSION 
02:11 TSO - Command - - ISPVCALL STATUS 
******************************** Bottom of Data ********************************

Add a Comment

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