| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
puneet478
Joined: 03 Jan 2006
Posts: 17
Location: Bangalore india
|
| Posted: Thu Jul 10, 2008 6:20 pm Post subject: Reading data from a screen - Screen capture |
|
|
Hi all,
I would like to know if there is a way by which i can read/catpure some specific from a static screen.
I mean can i read data at some specific position (pixel) using a REXX function or some other function?
How to do it if -
(1) Screen is static (no input fields)
(2) Screen has some editable fields.
Any help will be greatly appreicated.
Regards,
Puneet |
|
| Back to top |
|
superk
Joined: 26 Apr 2004
Posts: 3265
Location: Charlotte,NC USA
|
| Posted: Thu Jul 10, 2008 6:28 pm Post subject: Reply to: Reading data from a screen - Screen capture |
|
|
I recommend the use of the Open Systems Protocol Interface (OSPI) product from BMC. It allows you to code, in REXX or CLIST, programs that read and write data directly to and from a 3270-terminal session.
Other than that, for ISPF dialogs the variable ZSCREENI contains the logical screen data. |
|
| Back to top |
|
puneet478
Joined: 03 Jan 2006
Posts: 17
Location: Bangalore india
|
| Posted: Thu Jul 10, 2008 6:44 pm Post subject: |
|
|
Hi Superk,
Thank you so much for such a quick reply. After i am on right panel (using ZPANELID), i can reach the screen where i need to capture the data. Now, if i use ZSCREENI, would it capture all the data on that screen or just the editable one?
What do you mean by Logical data here?
Similarly, let us say, on a specific screen, I place the cursor (using program) on a particular field. How can i capture the value of that field?
My requirement is -
I run a macro (query) and get the output displayed in the form of a screen (ISPF). If i could dump the contents of that screen in a file, my work will be done as i will be able to parse data in that file (but i can't parse a static screen).
Regards,
Puneet |
|
| Back to top |
|
expat
Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...
|
| Posted: Thu Jul 10, 2008 6:51 pm Post subject: |
|
|
Quote: I run a macro (query) and get the output displayed in the form of a screen (ISPF). If i could dump the contents of that screen in a file, my work will be done as i will be able to parse data in that file (but i can't parse a static screen).
If you use variables to display the output then they are already defined to ISPF, or if the results of your macro are in a dataset, then use the dataset. |
|
| Back to top |
|
puneet478
Joined: 03 Jan 2006
Posts: 17
Location: Bangalore india
|
| Posted: Thu Jul 10, 2008 6:56 pm Post subject: |
|
|
I think i did not put it correctly. If i know the variables, my problem is solved.
Based on my query, a system screen is displayed. I can have my cursor come to right position but i dont know how to read next few bytes from that location.
In simple words, I want to capture data on a mainframe screen and put it in a PS.
Regards,
Puneet |
|
| Back to top |
|
expat
Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...
|
| Posted: Thu Jul 10, 2008 7:05 pm Post subject: |
|
|
OK, lets get basic here ..................
What type of query are you processing ?
Where does the output go ?
What do you mean by a system screen ? |
|
| Back to top |
|
enrico-sorichetti
Joined: 14 Mar 2007
Posts: 3082
Location: italy
|
| Posted: Thu Jul 10, 2008 7:16 pm Post subject: Reply to: Reading data from a screen - Screen capture |
|
|
did You check
http://www.sillysot.com/mvs/index.htm?vcursor.htm |
|
| Back to top |
|
puneet478
Joined: 03 Jan 2006
Posts: 17
Location: Bangalore india
|
| Posted: Thu Jul 10, 2008 7:16 pm Post subject: |
|
|
Hi Expat,
I am not sure how to add screen prints here otherwise that would have made it lot easier for me to explain the problem.
-> I am doing some data extraction (not any sql query but by giving some parameters on a ISPF panel)
-> The result is displayed in the form of screen (another ISPF screen, non-editable)
-> I want to copy the content of this screen in a PS.
Hope it is clear now.
Regards,
Puneet |
|
| Back to top |
|
enrico-sorichetti
Joined: 14 Mar 2007
Posts: 3082
Location: italy
|
| Posted: Thu Jul 10, 2008 7:19 pm Post subject: Reply to: Reading data from a screen - Screen capture |
|
|
Quote: -> I am doing some data extraction (not any sql query but by giving some parameters on a ISPF panel)
-> The result is displayed in the form of screen (another ISPF screen, non-editable)
do You have control of the application doing the data mangling... ?
modify it in order to write also to a PS
usually third parties applications provide away of saving somewhere the results of a query |
|
| Back to top |
|
expat
Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...
|
| Posted: Thu Jul 10, 2008 7:25 pm Post subject: |
|
|
| Or if you enter the PANELID command to find out the name of the 'System' panel being displayed, then look through the source of the panel to see if the data is now displayed from a variable. |
|
| Back to top |
|
Pedro
Joined: 01 Sep 2006
Posts: 510
Location: work
|
| Posted: Thu Jul 10, 2008 9:26 pm Post subject: Reply to: Reading data from a screen - Screen capture |
|
|
Quote: I am not sure how to add screen prints here
When you are posting a reply, use the button labeled 'code', then paste in your text, followed by then ending 'code'. |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|