Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to control the SWAP(PF9)ping ?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Jan 31, 2013 1:28 am    Post subject: How to control the SWAP(PF9)ping ?
Reply with quote

After working for almost 8 years in mainframe this seems like a silly question - but I still cant figure out how to do this... so here goes... icon_smile.gif

As we all know - SWAP(PF9) always switches/swaps between two active screens.... Is it possible to control this - such a way that on a particular instance I want to SWAP between the 1st and 4th screens continously.
Back to top
View user's profile Send private message

daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Thu Jan 31, 2013 1:38 am    Post subject:
Reply with quote

What I do is setup:
PF21 (Shift PF9) to SWAP 1
PF22 (Shift PF10) to SWAP 2
PF23 (Shift PF11) to SWAP 3
PF24 (Shift PF12) to SWAP 4

You need to setup the keys in the different applications on each screen.

Always setup each screen with the same application, so you know where you are going. I use a record/playback script in my emulator to do this.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jan 31, 2013 4:27 am    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Try using the SWAPBAR command. After issuing SWAPBAR, a new line appears at the bottom of the screen. It shows the screen names of each split screen.

You can point and shoot on the screen name on the SWAPBAR line and it will cause a swap to that screen.

========

ISPF, at most, only displays two screens at a time. If you split in the middle of the 3270 screen, there will be one panel on the top and another on the bottom. The SWAP command will only swap between either of those two active screens. If you move the split line to the top or bottom, it is still only those two panels that are active and which can be swapped to with the SWAP command.

You can use SWAP LIST on the screen you do not want. From the list, pick the screen you do want. It will make that screen one of the two active screens. Afterwards, SWAP will only go between those two active screens.

Learn also about the SCRNAME mypan command to give names to the screens. The name can be used by the SWAP mypan command.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Thu Jan 31, 2013 6:02 pm    Post subject:
Reply with quote

Thank you from the department of: You learn something new every day.

I did name my screens, but did not know I could point and shoot from the swap bar, and did not know I could swap to the screen name rather than the number.

I like this a alot.

Thanks...
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Jan 31, 2013 9:56 pm    Post subject: Re: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

daveporcelan wrote:
What I do is setup:
PF21 (Shift PF9) to SWAP 1
PF22 (Shift PF10) to SWAP 2
PF23 (Shift PF11) to SWAP 3
PF24 (Shift PF12) to SWAP 4

You need to setup the keys in the different applications on each screen.

Always setup each screen with the same application, so you know where you are going. I use a record/playback script in my emulator to do this.
Hi Dave,
I remember doing something like this sometime back. I had now forgotten about it. Thanks for reminding me again... icon_smile.gif



Pedro wrote:
Try using the SWAPBAR command. After issuing SWAPBAR, a new line appears at the bottom of the screen. It shows the screen names of each split screen.
Hi Pedro,
Like!! Like!! Like!!
As Dave said, new learning and this a really really good way of using the TSO/ISPF screen... Thanks a ton ... icon_biggrin.gif


To continue on with my original question... Still trying to figure out if that is possible...Based on the SWAPBAR command I am able to see a line as below
Code:
    *DSLIST     -DSLIST     ISFPCU41    SUPERCE

I understand that if we simply do a SWAP(PF9) it switches between the two screens which is marked as '*' and '-'. I think we can control which screen would get the '*' [would be the one which is active now] but is there a way to control which screen gets the '-' tag.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jan 31, 2013 10:03 pm    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Quote:
is there a way to control which screen gets the '-' tag.


With the SWAPBAR displayed, for example,
Code:
 *DSLIST     -DSLIST     ISFPCU41    SUPERCE

1. Double-click on the one you want with '-'
2. issue SWAP.
3. Double-click on the one you want with '*'
4. issue SWAP as needed.

or some combination of that.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Jan 31, 2013 10:20 pm    Post subject:
Reply with quote

Yup ... It worked !!
Never knew it was this easy... Thanks again Pedro.. icon_cool.gif
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Thu Jan 31, 2013 11:26 pm    Post subject:
Reply with quote

Is it SWAPBAR on TSO Option/Command line?

Code:
TSOIT86  CPU=SYST ------FBI ISPF/PDF Menu----- 1            Invalid value
OPTION ===> SWAPBAR   
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Fri Feb 01, 2013 12:13 am    Post subject:
Reply with quote

Yes Gary ...

As Pedro mentioned a new line with screen names will show up in the bottom of your screen...
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Feb 01, 2013 1:26 am    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Quote:
Is it SWAPBAR on TSO Option/Command line?


Yes. it should work on any ISPF command line. (I do not recall at what release it was introduced).

If it does not work for you, check that you do not have a customized ISPF command table which might be out of date.
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Fri Feb 01, 2013 2:33 am    Post subject:
Reply with quote

Oh, well - no SWAPBAR here. ...but I like it. Thanks.
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 985
Location: Oostende, Belgium

PostPosted: Fri Feb 01, 2013 2:52 am    Post subject:
Reply with quote

Try to execute, e.g. via Dialog test, the program "ISPTL" Or create your own selection panel with a "SELECT PGM(ISPTL)" command.

It's been around since z/OS 1.10, so you must be running something really old if it's not present, or, as was mentioned by Pedro, someone royally screwed up the command table.
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Fri Feb 01, 2013 3:15 am    Post subject:
Reply with quote

Yep, ISPTL works. Neat; thanks.
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Fri Feb 01, 2013 6:32 pm    Post subject:
Reply with quote

Is there a way to "name"/over-ride the labels in ISPTL ?

I always use SWAP LIST but I like ISPTL too.
Code:
 *------------------- ISPF Task List --------------------*
 |             Active ISPF Logical Sessions              |
 |                                          More:     +  |
 |  .  Start a new screen                                |
 |  .  Start a new application                           |
 |     Application Name                                  |
 |     _____________________________________________     |
 |                                                       |
 |     ID  Name       Panelid   Applid   Session Type    |
 |  .  1              PBS@PRIM  ISP      3270            |
 |  .  2              GSVX000P  GSVX     3270            |
 |  .  3-             PBS@PRIM  ISP      3270            |
 |  .  4*             PBS@PRIM  ISP      3270            |
 |  .                                                    |
 |  .                                                    |
 |  .                                                    |
 |  .                                                    |
 |  .                                                    |
 |  .                                                    |
 *-------------------------------------------------------*
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Feb 01, 2013 7:33 pm    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Add this to your user level command table.
Code:
SWAPBAR   0  SELECT PGM(ISPTL) PARM(&ZPARM)             

Use ISPF option 3.9 to add to your command table.

Or better... your system command table is out of date. You should examine the table from SISPTLIB and add all of the missing entries.
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 985
Location: Oostende, Belgium

PostPosted: Fri Feb 01, 2013 8:44 pm    Post subject: Re: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Pedro wrote:
Add this to your user level command table.
Code:
SWAPBAR   0  SELECT PGM(ISPTL) PARM(&ZPARM)             

Use ISPF option 3.9 to add to your command table.

Or better... your system command table is out of date. You should examine the table from SISPTLIB and add all of the missing entries.

No!

You should tell the people responsible for the system to properly use site and user command tables, and not to touch the IBM supplied ones at all!
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Feb 01, 2013 11:21 pm    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

Quote:
You should tell the people responsible for the system to properly use site and user command tables, and not to touch the IBM supplied ones at all!

Agreed. (do not know what I was thinking earlier)
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Fri Feb 01, 2013 11:42 pm    Post subject:
Reply with quote

Thanks Pedro...
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Feb 02, 2013 2:51 am    Post subject: Reply to: How to control the SWAP(PF9)ping ?
Reply with quote

for those interested

see here for a REXX script to <CUSTOMIZE> the environment before ISPF invocation
http://www.ibmmainframes.com/viewtopic.php?t=60112&highlight=ctbadd

and here for a REXX script to update the in storage copy of the command table
http://www.ibmmainframes.com/viewtopic.php?t=56254&highlight=ctbadd
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 269
Location: Mumbai

PostPosted: Mon Feb 04, 2013 9:44 am    Post subject:
Reply with quote

Super like..very thanks for the information Pedro..

Regards,
Chandan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am
No new posts Which Control block has the DSNTYPE i... sudarshan.srivathsav PL/I & Assembler 4 Thu Jan 28, 2016 11:29 pm
No new posts DFSORT control statements in any order ? ronald masters DFSORT/ICETOOL 2 Tue Dec 15, 2015 11:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us