MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

capture output from REXX / COBOL call to dataset ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Sat May 20, 2006 11:23 am    Post subject: capture output from REXX / COBOL call to dataset ? 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
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Mon May 22, 2006 7:07 am    Post subject: Reply with quote

If your assembler program uses PUTLINE macro instead of TPUT ore WTO macro to write output to the terminal, you could use the following:
Code:

x = outtrap('trapdata.')
/* call your proram here ... */
x = outtrap('OFF')
say 'trapped data is'
do i = 1 by 1 to trapdata.0
   say trapdata.i
end

Give it a try.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group