IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to know the resolution of in any mainframe session?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pedro

Global Moderator


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

PostPosted: Wed Jun 18, 2008 9:20 pm
Reply with quote

Quote:
but the problem is still there.

The problem is in your understanding.

This example:
Code:
/* rexx */               
Address ISPEXEC           
"VGET (ZSCREENW,ZSCREEND)"
Say    ZSCREENW ZSCREEND

is a rexx implementation, but the key point is that ISPF provides variables to determine the screen size. You can use VGET from compiled languages to.

ps. I realize the task is not to determine screen size, but how to save job output.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jun 18, 2008 9:24 pm
Reply with quote

But he is writing this in VB, not REXX, so he can only use the scripting language of his emulator. He would have to run this REXX on the mainframe somehow then capture the output.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 18, 2008 11:17 pm
Reply with quote

Hello,

Quote:
He would have to run this REXX on the mainframe somehow then capture the output.
Yes, and i believe this is the new direction being investigated.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Jun 19, 2008 12:41 am
Reply with quote

Sorry, I did not read all of the posts. </blush>

But I do not think you need to know the current size of the screen to determine how many jobs there are. The last part of the panel title has the number of jobs in the list.
Code:
   Display  Filter  View  Print  Options  Help                                 
 -------------------------------------------------------------------------------
 SDSF HELD OUTPUT DISPLAY ALL CLASSES LINES  100,879    LINE 1-11 (15)         
 COMMAND INPUT ===>                                            SCROLL ===> CSR 
 NP   JOBNAME  JOBID     CRDATE    C FORM FCB  DEST      RMT NODE   TOT-REC O-GR

In this example, there are 15 jobs.

Your emulator macro should be able to get a screen capture and examine the results.

---or--
If you still want to pursue your current design, just scroll by a fixed amount rather than the variable amount. That is, scroll by 10 instead of by page.
Back to top
View user's profile Send private message
Kumar Ashok

New User


Joined: 20 Jan 2007
Posts: 29
Location: KOLKATA

PostPosted: Thu Jun 19, 2008 8:52 am
Reply with quote

@Pedro - Its true that if we scroll by certain amount the there will be no need of knowing the screen size. But there are two limitations

1) My emulator doesn't provide the information in the way you shown rather its something like..

-------------------------------------------------------- IOF Job List Menu ---------------------------------------( 61 )-----------
COMMAND ===> SCROLL ===> CURSOR
----------------------------------------------------------- Output Jobs -----------------------------------------------------------
-------JOBNAME--JOBID---ACT-STAT-OWNER----DEST/DEVICE-------RECS-HELD-DAY--TIME-PAGES-HELD-ALLOC---RLSE CLASS-SECLABEL-------------


so there is no information on the jobs.

2) I am a mainframe guy with very limited knowledge of scripting language and to learn a complete language in limited time that too for a small tool is overkill I guess.

Yes I was able to capture the info running REXX EXEC so I will ne using that info for my further improvement in this tool

Thanks again thanks for your help


Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top