Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to check the number of currently splitted screens

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Fri Aug 01, 2014 2:10 pm    Post subject: How to check the number of currently splitted screens
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8666
Location: Back in jolly old England

PostPosted: Fri Aug 01, 2014 2:26 pm    Post subject:
Reply with quote

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
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 287
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Fri Aug 01, 2014 2:34 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8666
Location: Back in jolly old England

PostPosted: Fri Aug 01, 2014 2:35 pm    Post subject:
Reply with quote

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 icon_cry.gif
Back to top
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 287
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Fri Aug 01, 2014 2:39 pm    Post subject:
Reply with quote

Here is a sample that I tested:

Code:
/* REXX */                         
                                   
   "ISPEXEC VGET     (ZSCRMAX )   "
   "ISPEXEC VGET     (ZSCRCUR )   "
                                   
   SAY 'ZSCRMAX     = ' ZSCRMAX   
   SAY 'ZSCRCUR     = ' ZSCRCUR   
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Fri Aug 01, 2014 2:55 pm    Post subject:
Reply with quote

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
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 287
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Fri Aug 01, 2014 3:25 pm    Post subject:
Reply with quote

You're welcome, Stefan :-)
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Thu Aug 07, 2014 1:54 pm    Post subject:
Reply with quote

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
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID RECFM FOR DDNAME SYSLIN AND C... sandeep kumar302 All Other Mainframe Topics 7 Fri Apr 27, 2018 6:07 pm
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us