MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ZSTART ISPF variable

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 616
Topics: 171
Location: Stockholm, Sweden

PostPosted: Tue Sep 13, 2016 12:57 am    Post subject: ZSTART ISPF variable Reply with quote

I discovered this yesterday and it's rather neat. I'm used to startíng my ISPF session and then immediately opening 3 new windows. This does it automatically via the following entery in my variable pool

ZSTART P ispf;start;start;start;swap 1;swap 2

The first 3 start's simply open new windows. The swap's SHOULD (I would have thought) have swapped to the FIRST and second windows, but instead, "current" windows are 2 & 3. Does anyone know how the above SHOULD be written.

Would also like to push the SWAPBAR option (a toggle switch). Having run the startup variable above, with SWAPBAR on, I see the following at the bottom of my screen

ISRÖPRIM *ISRÖPRI -ISRÖPRI ISRÖPRIM

(the * and - show that screens 2 & 3 are the current ones).
The point about swapbar being one is that you can simply place the cursor on any of the swapbar words, press enter and you're swapped to that window (rather than, as I've always done, enter SWAP LIST and then selecting the relevant screen)
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Tue Sep 13, 2016 12:56 pm    Post subject: Re: ZSTART ISPF variable Reply with quote

misi01 wrote:

The first 3 start's simply open new windows. The swap's SHOULD (I would have thought) have swapped to the FIRST and second windows, but instead, "current" windows are 2 & 3. Does anyone know how the above SHOULD be written.

Would also like to push the SWAPBAR option (a toggle switch). Having run the startup variable above, with SWAPBAR on, I see the following at the bottom of my screen

ISR@PRIM *ISR@PRI -ISR@PRI ISR@PRIM


Misi01,

I guess you forgot that you actually have 4 screens as the first ISPF itself is 1 screen. This is the sequence of events as follows
Code:

ISPF    = Ispf screen 1
START   = brings up ispf screen 2
START   = brings up ispf screen 3
START   = brings up ispf screen 4
SWAP 1  = Screen 1 is active (from scr 4 jumped to scr1)
SWAP 2  = Screen 2 is active (from scr 1 jumped to scr2)


and if you had
Code:

ZSTART   P   ISPF;START;START;START;SWAP 1;SWAP 2;SWAPBAR ON


you would see at the bottom of the screen this
Code:

ISR@PRIM *ISR@PRI -ISR@PRI ISR@PRIM


You also have
Code:

SWAP PREV|NEXT


So you can use those to move between screens. Also you can actually use the Panel name(aka scrname on) to toggle between screens with SWAP command

PS: You can also achieve this by recording a macro with your actions and run that macro every time you logon.

For others who are not familiar with how this is being done, here is a tutorial of the command (You need to have z/OS 2.1 and higher for this to work)

Automatically start multiple logical screens when starting ISPF
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 616
Topics: 171
Location: Stockholm, Sweden

PostPosted: Thu Sep 15, 2016 4:23 am    Post subject: Reply with quote

Tried a variation on your suggestions with the following

Quote:
ispf;start;start;start;swap next


The SWAP NEXT gave me focus on screen 1, but I still had screen 3 as the "other" focus.

Also you can actually use the Panel name

Not sure how I would do this, since all the screens are called ISR@PRIM.

In the end, I went with the following that seemed to do the trick

Quote:
ispf;start;start;swap prev;start;swap next

_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Thu Sep 15, 2016 10:08 am    Post subject: Reply with quote

misi01 wrote:
actually use the Panel name[/i]

Not sure how I would do this, since all the screens are called ISR@PRIM.


Misi01,

I mentioned about SCRNAME ON in my previous response. Either way you can turn on the screen name quite easily and you can name the screen any thing you want

you can activate screen naming by typing SCRNAME ON

Code:

ISPF;SCRNAME ON;START 3.4;START 7.3;SWAP DSLIST;SWAP DTEST;


would put you in the variable pool option (7.3)

and you can name the screens as to what ever you want (8 character name)
Code:

SCRNAME ON;START 3.4;SCRNAME MIS01;START 7.3;SCRNAME MISI02;


Now you can type
Code:
SWAP MISI02
and you will be in the 7.3 variable pool screen.

Check this link which explains in detail about SCRNAME

SCRNAME z/OS ISPF User's Guide Vol I
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 616
Topics: 171
Location: Stockholm, Sweden

PostPosted: Sun Sep 18, 2016 1:16 am    Post subject: Reply with quote

Thanks Kolusu. I'll try that at work tomorrow
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group