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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rexx calling a cobol pgm

Status
Not open for further replies.

mrc2

Programmer
May 8, 2003
1
0
0
CA
I have a rexx pgm that calls a cobol program to do some logic. I have display statements in my cobol program. Is there anyway to trap those messages in my rexx program? Using the Outtrap command does not work. Or is there any other way to get messages back to my rexx program?

Thanks for any help!!
 
cobol DISPLAY goes to SYSOUT. make sure, that SYSOUT is assigned to TERMINAL like:

ALLOC DD(SYSOUT) DA(*) SHR REUSE

put the call of your cobol-program in a separate REXX and set the output trapping before you call this rexx program.

also you can assign SYSOUT to a temporarely file and read it after calling the cobol program by execio.

HTH
Heinz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top