New to IBM Z

New to IBM Z

Deepen your technical skills, expand your global network, and connect with mentors and other early tenure professionals on the mainframe platform.

 View Only

Today I learned about swap bar

By Morag Hughson posted 11/29/24 12:16 AM

  

I have been using z/OS for a long time, but there are always new things to learn that you didn't know you didn't know. I very recently had one such learning experience just by watching another user work.

In ISPF I usually use the start command to create different screens to swap between. For example:-

start 3.4

to have a Data Set List Utility page, and perhaps also

start s.h

to have the SDSF held output, and then thirdly sometimes the MQ ISPF Panels

start tso csqorexx

I would use FP9 to swap between the two, or if I had more than two I would use swap next or the swap list command to see all the screens I had, in case I wanted to swap between more than two of them.

┌─────────────────── ISPF Task List ────────────────────┐
│             Active ISPF Logical Sessions              │
│                                                       │
│  .  Start a new screen                                │
│  .  Start a new application                           │
│     Application Name                                  │
│     _____________________________________________     │
│                                                       │
│     ID  Name       Panelid   Applid   Session Type    │
│  .  1*             ISFPCU41  ISF      3270            │
│  .  2-  DSLIST     ISRUDLP   ISR      3270            │
│  .  3              CSQOPRIA  CSQO     3270            │
│  .                                                    │
│  .                                                    │
│  .                                                    │
│  .                                                    │
│  .                                                    │
│  F1=Help      F3=Exit      F7=Backward  F8=Forward    │
│ F11=Expand   F12=Cancel                               │
└───────────────────────────────────────────────────────┘

But just last week I learned about the swap bar. To turn it on, just type swapbar on and you will see the screen names appear at the bottom of your screen. Now that they are more obvious however, it helps to give them names as well. To do that, go to the screen you want to name. In my example I go to my SDSF held output, and then type this:

scrname HELD

the default screen name for a dataset list is DSLIST so I don't bother to change that one.

and I go to my MQ ISPF panels and type this:

scrname IBMMQ

Now the bottom of my ISPF screen looks like this:

PF 1=HELP      2=SPLIT     3=END       4=RETURN    5=IFIND     6=BOOK
PF 7=UP        8=DOWN      9=SWAP     10=LEFT     11=RIGHT    12=RETRIEVE
  *HELD    -DSLIST  IBMMQ

with the asterisk showing the one currently on display, and the dash showing the one that PF9 would swap you to. You can put your cursor on the names in the swap bar and hit enter and you will be swapped to the appropriate screen.

I find this a complete game changer since I always have more than two ISPF screens on the go. I can't believe I am today years old and have only just discovered it!!


Morag Hughson is an MQ expert. She spent 18 years in the MQ Devt organisation before taking on her current job writing MQ Technical education courses with MQGem. She also blogs for MQGem. You can connect with her here on the IBM Community or on LinkedIn.
0 comments
49 views

Permalink