ZSTART ISPF variable
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> TSO and ISPF

#1: ZSTART ISPF variable Author: misi01Location: Stockholm, Sweden PostPosted: Tue Sep 13, 2016 12:57 am
    —
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)

#2: Re: ZSTART ISPF variable Author: kolusuLocation: San Jose PostPosted: Tue Sep 13, 2016 12:56 pm
    —
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

#3:  Author: misi01Location: Stockholm, Sweden PostPosted: Thu Sep 15, 2016 4:23 am
    —
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

#4:  Author: kolusuLocation: San Jose PostPosted: Thu Sep 15, 2016 10:08 am
    —
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

#5:  Author: misi01Location: Stockholm, Sweden PostPosted: Sun Sep 18, 2016 1:16 am
    —
Thanks Kolusu. I'll try that at work tomorrow



MVSFORUMS.com -> TSO and ISPF


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group