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 Usergroups 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: 4648
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: 10256
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: 10256
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: 2038
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Need help in reading and validating a... ABINAYATHULASI COBOL Programming 8 Tue Apr 18, 2017 11:42 am


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