View previous topic :: View next topic
|
Author |
Message |
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
Hi everybody,
in our homegrown software configuration interface I want to offer a line command which starts a VIEW on a dataset in a newly splitted screen. I already know how to split the screen and start a VIEW. But to present a message if the user has already reached the limit of screen splits (in our installation it's 8) I need to know how many screens are currently open.
I've studied the manuals but didn't found any ISPF variable containing the total of current screens.
Any idea on this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I usually use LIST and then hit PF9.
I do have an example of the REXX code to show this, but can't access it at work.
Will try to find it and post later when I get back home |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
The ISPF variable ZSCRCUR gives the number of screens currently open and ZSCRMAX gives the max number of screens allowed.
Hope this helps. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at option 7. whatever - that's how I think I found the required variable name.
Unfortunately no TSO access with this contract |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
Here is a sample that I tested:
Code: |
/* REXX */
"ISPEXEC VGET (ZSCRMAX ) "
"ISPEXEC VGET (ZSCRCUR ) "
SAY 'ZSCRMAX = ' ZSCRMAX
SAY 'ZSCRCUR = ' ZSCRCUR |
|
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
Thanks to mistah kurtz,
I missed the description of this variable as I searched for the term "split".
ZSCRCUR did the trick. |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
You're welcome, Stefan :-) |
|
Back to top |
|
|
Ramsee
New User
Joined: 06 Jan 2011 Posts: 53 Location: Chennai
|
|
|
|
You can use SWAPBAR ON in the Command line and can view in which screen you are into, and can move to the required screen by just double clicking it. |
|
Back to top |
|
|
|