|
|
| Author |
Message |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Hi all,
I am working on a tool and that tool is dependent on the resolution of mainframe screen/session. So is there any command or panel using which I can get this information?
FYIP....
I am working on a VBScript Macro, and to make this macro independent of the sessions that users would be using, I need this information so that I can code my Macro in the manner that it doesn't depend on the resolution like 24*80 or 27*132 or 43*80 that user might use. |
|
| Back to top |
|
 |
References
|
|
 |
UmeySan
Senior Member
Joined: 22 Aug 2006 Posts: 624 Location: Germany
|
|
|
|
Hi Kumar Ashok !
Plse have a look at TSO 0.1.
Is that what you want ??? |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1132 Location: Mumbai - India
|
|
|
|
Umey,
| Quote: |
Plse have a look at TSO 0.1.
|
Could you pls explain a bit more about this command? |
|
| Back to top |
|
 |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Thanks a lot for your input this is exactly the same that I was looking for. But this is true for the other systems. But unfortunately our system/sessions are configured such that we are not going to the terminal option by 0.1, but somewhere else, so is there any command to view it?
Regards |
|
| Back to top |
|
 |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Actually this command takes you to the panel that provides you the features of any session terminal, e.g. Resolution etc. It also provides you with the option to change the session characteristics of the terminal.
Please correct me if I am wrong.
Regards, |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 508 Location: work
|
|
|
|
It is not clear what you mean by resolution. The emulator can be resized by the user to many different sizes.
But ISPF still only uses the dimensions of the hardware that is being emulated. Typically, the dimensions are 24 x 80. No matter how the user resizes, the screen dimension seen by ISPF does not change. That is, ISPF is not aware of screen size changes made by the user.
If you want the dimensions of the screen and are in ISPF, use variables ZSCREEND and ZSCREENW.
Become familiar with Appendix D and E of the ISPF Dialog Developer's Guide and Reference. They are your friends. |
|
| Back to top |
|
 |
stodolas
Senior Member
Joined: 13 Jun 2007 Posts: 647 Location: Wisconsin
|
|
|
|
But ISPF can be set with the following:
| Code: |
Terminal Characteristics
Screen format 3 1. Data 2. Std 3. Max 4. Part
|
Mine is set to Max and my emulator is set to 27x132. Depending on the application being run within ISPF I get different resolutions. |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3070 Location: italy
|
|
|
|
what You are asking is impossible to obtain...
at any time in a 3270 session ( rough approximation but enough for the explanation )
there are always two modes available,
the basic mode 24x80
the alternate mode 32x80,127x133,43x80
what is being displayed depends from the command being used to display the buffer
write for the basic mode
write alternate for the alternate mode,
and also depends on the ISPF settings for the screen format
| Code: |
Terminal Characteristics
Screen format 2 1. Data 2. Std 3. Max 4. Part
|
| Code: |
Help for Screen Format
More: +
Enter one of the following values depending on the type of
terminal you are using or the type of terminal your
emulator is emulating:
Choose one of the following formats:
1. DATA - Format based on data width (only on a 3278
model 5 terminal)
2. STD - Always format 24 lines by 80 characters
3. MAX - Always format 27 lines by 132 characters
4. PART - Format using hardware partitions (only on a
3290 terminal)
|
for example for a model 5 terminal 27x133 You can see what' s going on
by editing a dataset with lrecl 80
or browsing a sdsf output
and You will see that the sceen will swith from 24x80 to 27x133
so there is nothing apart looking at the screen which will tell You what is going on
also even if it could be possible to query the 3270 session definition
You would get only the alternate screen size
not the aspect ratio of what is being displayed on the screen |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8633 Location: 221 B Baker St
|
|
|
|
Hello Kumar Ashok,
What functionality will your process provide?
If we knew what you want to accomplish (rather than part of the how), we might be able to offer suggestions. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 508 Location: work
|
|
|
|
| Code: |
/* rexx */
Address ISPEXEC
"VGET (ZSCREENW,ZSCREEND)"
Say ZSCREENW ZSCREEND |
If ISPF option 0 is set to screen format of 'std', it returns 80 x 24.
For screen format of 'max', it returns 132 x 27.
But I believe the screen format setting is global for all of the TSO session. One application will not see a different dimension than another. When the user changes the setting, all applications will see the change.
If you want to code your application to use the whole screen, use the variables above. |
|
| Back to top |
|
 |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Thank you all for the suggestions and comments. That was really helpful in understanding many things, but the problem is still there.
I will simplify the problem
PROBLEM - In any mainframe session how to decide whether the user is logged on in 24*80 resolution or 32*80 or 27*132 or 43*80 either by issuing any command or though the values that appear in user panels.
I hope I am clear this time.
@Scherrer - It would have been of great help if I could tell you what exactly I am doing but my company policies don't allow me to do that. I am extremely sorry for the little information that I provided
Regards |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8633 Location: 221 B Baker St
|
|
|
|
Hello,
| Code: |
/* rexx */
Address ISPEXEC
"VGET (ZSCREENW,ZSCREEND)"
Say ZSCREENW ZSCREEND |
Have you tried this? Does this do what you need? If not . . ?
| Quote: |
| my company policies don't allow me to do that. |
We understand that you shouldn't post company secrets, but the kind of code you are working is generic (at least at this point).
If you could describe some unrelated, but similar process, we might still be able to help. For example if you are working on something for an insurance company, maybe make a similar example of a bank .
Good luck  |
|
| Back to top |
|
 |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Thanks Scherrer,
Actually i will keep that as the last option to use the REXX panel and then getting the values. As this might add some additional complexities in my tool. But yes, I admit that I was not aware of this way as I am not much into REXX. Thanks again for the inputs
Regarding the tool that I am developing here is the piece of information that I guess will not harm me
Actually this piece of information I need as I am going to automate the DUMPING of spool output in permanent dataset with the use of VBscript MACRO. and I need to know the screen resolution so that before doing a SCROLL how much jobs I have to DUMP.
e.g. in 24*80 in total there are almost 19 jobs present and in 27*132 there are 22. So I want to make this tool generic for all of the sessions. So if through any command or something if I am able to give my MACRO information about the resolution then I can use variables instead of hard coded values to make my toll session independent.
I hope this information will help you to understand what is the root cause of the question.
Regards |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8633 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| I am going to automate the DUMPING of spool output in permanent dataset |
Where will the permanent dataset reside?
If the "dump"ed data will remain on the mainframe, there are multiple topics on different ways people have dumped data from spooled output to some disk file.
Just a thought. . .  |
|
| Back to top |
|
 |
Kumar Ashok
New User
Joined: 20 Jan 2007 Posts: 29 Location: KOLKATA
|
|
|
|
Scherrer,
Could you please provide me link of any such topic that deals with the dumping of jobs in bulk let us say more than 100 jobs at a time.
Regards, |
|
| Back to top |
|
 |
|
|