Neon Enterprise Software Blog

Welcome to Neon Enterprise Software Blog Sign in | Join | Help
in Search

Kristine Harper's Newbie Blog

Some of My Favorite ISPF Commands

As a developer, you can usually (ok, well, more than "usually") find me working on ISPF (Interactive System Productivity Facility).  So for this blog, I thought I'd share some of my favorite and most used ISPF commands.  If you are an experienced ISPF user, perhaps these are some of your faves too, and if not, these are definitely some commands I recommend you try out. 

  • Block column shifts
    • Place a pair of "((" or "))" around a block of code to shift the code left or right.  By typing a number after the closing block command, you can specify exactly how many columns you want the code to be shifted left or right. 
    • I find this particularly useful in ISPF Edit when I'm working on a module and discover that a chunk of code needs to be placed in an IF/ELSE/ENDIF block or needs to be further nested in an SPM (Structured Programming Macro...see other blogs for more info.).  Much easier than manually indenting the code, especially when you have more than just a few lines you want to shift.
  • Block exclude
    •  Place a pair of "xx" around a block of code to exclude those lines from display.  You can also just use "x" followed by a number to specify exactly how many lines you wish to exclude.
    • I use this a lot when I'm working on a module in ISPF Edit and need to simultaneously look at two chunks of code that are not located near each other in the module.
  •  AUTOTYPE
    • Set one of your function keys to AUTOTYPE (type "KEYS" in ISPF).  This command will let you type a partial name into a Library field (project, group, type or member) or the Other Data Set Name field - then press your function key you set up and ISPF will fill in the value.  Pressing the key again will retrieve the next value.
    • Very useful if you are constantly working between many different libraries and can't always remember them all :-)
  • System command extension
    • While in SDSF, you can type "/" to bring up a pop-up in ISPF that will allow you to enter very long commands. 
    • Sometimes the command line is not long enough to type in your entire command and this allows for commands up to 126 (I believe that's the limit...) characters long.  What I really like is that it remembers your previous commands so you don't have to retype it all again.
  • TSO ISRDDN
    • Type this command in ISPF to "view and manipulate allocated files, to view existing ENQs and ENQ contention, and to browse storage and loaded load modules."  This diagnostic facility is very useful for investigating datasets.  You can view and compress datasets, get detailed information and display a list of jobs and users using a dataset.
    • I like this command because it gives me a good overall picture of what's going on in my sessions regarding datasets - very useful when doing testing.
  • EX ALL;F 'string' ALL
    • This is a nice condensed find command that I often use in ISPF EDIT to isolate the results of the find.  The find command can be as complex as you like, and the results are displayed in an easy to read chunk, with all the lines that did not meet the find criteria omitted from the display. 

There are many others, but this is a good starting list for those of you who are new to ISPF and want some commands to make your life easier. 

So if you use ISPF often too, what are your favorite slick commands?  I always want to learn more, so please share!

Til next time, Kristine

Published Friday, March 30, 2007 11:16 AM by kharper

Comments

 

Volodymyr20 said:

> Block column shifts

Aha - "<<" and ">>" are also useful sometimes when comments should not be moved

BTW - http://www.felgall.com/tso5.htm - pretty interesting guide; its "root" - http://www.felgall.com/soft1.htm

And sometimes, when massive code changes are done, editors like UltraEdit are useful:

- they can open/save data sets from/to mainframe directly

- offer reach text editing capabilities

> AUTOTYPE

Interesting feature, though I prefer copy-pasting such names to/from Windows notepad :-)

April 12, 2007 9:17 AM
 

Nick said:

Hi Kristine,

Welcome to the Jurassic Park "Z".

When you start (or have to) like ISPF, after 30 years of "green & black" screen I like to click, grad & drop (future is behind me and I have no time to waste ;)

However, I found this extensive ISPF/PDF "simphony" useful, courtesy of Kim Ørtved, CSC. S04. Learn at least Five “New” useful Tools in ISPF/PDF. on the Nordic GSE.

Please download it (I can't attach it for you) and enjoy!

I found it on the Nordic GSE 2006 Technical Conference.

Still I can't find the download link. I can mail it (3.5MB) if you provide the email.

Or contact the author. Cheers in sunny Tampa. It's also hot in Brussels, Belgium.

You may want to join my LinkedIn network http://www.linkedin.com/in/nickmanu

Nick

April 16, 2007 10:20 AM
 

Big iron said:

This is sort of a late addition to this entry but a couple of my favourites are:

 COMPARE subcommand of EDIT

 - see changes between the current copy and the existing saved copy COMPARE * or COMPARE 'some.other.dataset.name' to compare it to a different dataset

SJ line command of SDSF (ISPF mode)

 - commonly known as "Steal JCL" - get a copy of a job's JCL and SYSIN input

November 14, 2008 1:56 PM
Anonymous comments are disabled

About kharper

Kristine M. Harper is a developer for NEON Enterprise Software. Kristine graduated from the University of Arizona in 2005, but prior to graduation, completed internships with NEON Enterprise Software in the summers from 2001-2005. Kristine works as an assembler programmer in the area of research & development, on IMS projects. Specifically, she has worked on NEON’s D2 and Mission Control products. As a young female, Kristine is somewhat of an anomaly in the mainframe industry. That drove her to become involved with zNextGen, a user-driven community that aims to connect peers and facilitate shared experiences among emerging mainframe professionals. Kristine is currently a project manager for zNextGen, and is a frequent presenter at SHARE. She has also been included in media coverage with the following outlets: Search CIO Tech Target, KUHF Radio, eWeek, Reuters, and more. Visit her blog to read about the trends in her world: http://www.neonesoft.com/blog/blogs/kharper/default.aspx
Powered by Community Server, by Telligent Systems