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

OUTTRAP function in batch mode

Status
Not open for further replies.

mucruz

Programmer
Nov 22, 2011
1
MX
Hi,

I'm trying to use the OUTRAPP function in batch mode to get a tso command output into a REXX variable. It works fine when I execute the REXX script directly, but it can't get anything when I execute it in a JCL. The REXX user's guide says that this function only can be used in a TSO address space. So, Is there any way to get a tso command output into a rexx variable to manage it?
 
Using OUTTRAP to trap the output of a TSO command within a REXX program is absolutely fine. That's what is was designed for.
What program do you use on your PGM= parameter of your EXEC statement of your job? It should be IKJEFT01 or one of its little sisters IKJEFT1A or IKJEFT1B to establish a TSO environment in batch.

If this is true and the problem still persists, you should post the relevant portion of your code here.

There are 10 types of people in the world: Those who understand binary, and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top