Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture terminal displays from Rexx / External Program call

Status
Not open for further replies.

tcurrier

Programmer
Mar 5, 2000
40
US
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.
 
Have you tried OUTTRAP ?.

OUTTRAP is a TSO/E REXX external function - documented in the TSO/E REXX REFERENCE.

 
Yes, I tried OUTTRAP, and that didn't work.

After doing some experimenting, I found out that the SYSPRINT dd wasn't being written to because it was already allocated.

I put a "FREE DDNAME(SYSPRINT)" at the top of my exec, and now I am able to allocate and write to the SYSPRINT dd.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top