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

Reading data from a screen - Screen capture


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Jul 10, 2008 6:28 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 10, 2008 6:51 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 10, 2008 7:05 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jul 10, 2008 7:16 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jul 10, 2008 7:19 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 10, 2008 7:25 pm
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

Global Moderator


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

PostPosted: Thu Jul 10, 2008 9:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top