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
 

 

Capture SYSPRINT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Thu Oct 23, 2008 1:12 am    Post subject: Capture SYSPRINT
Reply with quote

I have a Rexx exec that calls a program (actually I think it might be an assembler program, it's vendor supplied). When it runs, there are displays from the program that show up on the screen that I would like to capture to a dataset.

I've tried allocating SYSPRINT, SYSOUT, TERMINAL, etc. and assigning an output dataset name to these DD's, but nothing gets captured.

Is there another way that I can capture these displays ?

Thanks for any help.
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 Oct 23, 2008 1:19 am    Post subject: Reply to: Capture SYSPRINT
Reply with quote

Try OUTTRAP, but take heed of the restrictions:

Quote:

In general, the OUTTRAP function traps all output from a TSO/E command. For example, OUTTRAP traps broadcast messages from LISTBC, the list of allocated data sets from LISTALC, catalog entries from LISTCAT, and so on.

If you plan to write your own command processors for use in REXX execs, and you plan to use the OUTTRAP external function to trap command output, note the OUTTRAP function does not trap command output that is sent to the terminal by:

TPUT
WTO macro
messages issued by TSO/E REXX (that is, messages beginning with IRX)
messages issued by TRACE output

However, OUTTRAP does trap output from the PUTLINE macro with DATA or INFOR keywords.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Thu Oct 23, 2008 7:36 am    Post subject:
Reply with quote

This is the way i tried Outrap

Open X = Outrap (......)
Address TSO ( <Rexx Command>)
Close Outrap.

But it did not capture the display statements in the outrap. Just wanted to make sure, Is this the same thing you meant.

I have tried this option earlier itself.

Thanks for the reply. Any other suggesstions
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Oct 23, 2008 12:04 pm    Post subject:
Reply with quote

What are the "open" & "close"? Are those new REXX instructions?

O.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Oct 23, 2008 8:53 pm    Post subject: Reply to: Capture SYSPRINT
Reply with quote

Code:
 there are displays from the program that show up on the screen

What do you mean by 'displays'? Are these ISPF panels?

You have mis-spelled 'outtrap'.

In general, allocating a DD name is of no help unless the program was already writing to that DD name.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Thu Oct 23, 2008 9:58 pm    Post subject:
Reply with quote

Try using OUTTRAP the following way:
Code:
X = OUTTRAP("Cmd.")
Address TSO "some tso command here"
X = OUTTRAP("OFF")
Do I = 1 To Cmd.0
   Say Cmd.I
End
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Fri Oct 24, 2008 12:39 am    Post subject:
Reply with quote

Hi Pedro,

Thers is a TSO command exeuting (may b Assembler) and when I execute the command it displays some messages (not on panel). I suppose those are getting displayed in Sysprint, I wanted to capture these messages in to a dataset.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Fri Oct 24, 2008 12:42 am    Post subject:
Reply with quote

Hi Marso,

That is what I have tried and it did not work.
The messages my command executes are displayed not the outrap count.
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: Fri Oct 24, 2008 1:00 am    Post subject: Reply to: Capture SYSPRINT
Reply with quote

Check with the vendor. If they're using TPUT or WTO, as I pointed out earlier, then you can't capture the output. If they are indeed writing to a datatset, then you just need to read the contents of that dataset.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Fri Oct 24, 2008 1:25 am    Post subject:
Reply with quote

Probably, that might be the case.

Just wanted to confirm One more thing,

When you execute rexx command with a simple statement SAY "Hello".

I assume the message "Hello" is displayed in ISPF panel (Is that correct??)
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Oct 24, 2008 2:01 am    Post subject:
Reply with quote

No, it is displayed on your default output device (usually SYSTSPRT/terminal).

O.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Fri Oct 24, 2008 2:27 am    Post subject:
Reply with quote

Exactly.
So the message from SYSTSPRT cannot be captured ? ?
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Fri Oct 24, 2008 3:40 am    Post subject: Reply to: Capture SYSPRINT
Reply with quote

The point is that putting text on the screen can be done using several methods. Some of those ways cannot be captured. Programs should use a method that allows capture, but some do not. It might simply be a case of the developer not knowing. You should be able to submit a requirement to the vendor.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Fri Oct 24, 2008 3:45 am    Post subject:
Reply with quote

Oh...
Although I have to look for an alternative to change my process (since this does not wrok), Thanks a lot to all of you ,who has taken your time in responding to my query.


Thanks
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm
No new posts Sort,remove & capture dup recs ha... subratarec DFSORT/ICETOOL 21 Tue Apr 28, 2015 9:28 pm
No new posts DYNALLOC macro in Assember -Is there ... sudarshan.srivathsav PL/I & Assembler 2 Wed May 07, 2014 10:11 pm
No new posts Synchronous Data Capture Exit Use Michael Askins IMS DB/DC 4 Wed May 07, 2014 4:41 pm


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