Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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
 
Reading data from a screen - Screen capture

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

New User


Joined: 03 Jan 2006
Posts: 13
Location: Bangalore india

PostPosted: Thu Jul 10, 2008 6:20 pm    Post subject: Reading data from a screen - Screen capture
Reply with quote

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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Jul 10, 2008 6:28 pm    Post subject: Reply to: Reading data from a screen - Screen capture
Reply with quote

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

New User


Joined: 03 Jan 2006
Posts: 13
Location: Bangalore india

PostPosted: Thu Jul 10, 2008 6:44 pm    Post subject:
Reply with quote

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

Global Moderator


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

PostPosted: Thu Jul 10, 2008 6:51 pm    Post subject:
Reply with quote

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

New User


Joined: 03 Jan 2006
Posts: 13
Location: Bangalore india

PostPosted: Thu Jul 10, 2008 6:56 pm    Post subject:
Reply with quote

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

Global Moderator


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

PostPosted: Thu Jul 10, 2008 7:05 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Thu Jul 10, 2008 7:16 pm    Post subject: Reply to: Reading data from a screen - Screen capture
Reply with quote

did You check

http://www.sillysot.com/mvs/index.htm?vcursor.htm
Back to top
View user's profile Send private message
puneet478

New User


Joined: 03 Jan 2006
Posts: 13
Location: Bangalore india

PostPosted: Thu Jul 10, 2008 7:16 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Thu Jul 10, 2008 7:19 pm    Post subject: Reply to: Reading data from a screen - Screen capture
Reply with quote

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

Global Moderator


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

PostPosted: Thu Jul 10, 2008 7:25 pm    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Thu Jul 10, 2008 9:26 pm    Post subject: Reply to: Reading data from a screen - Screen capture
Reply with quote

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
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 Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us