Page 1 of 1

how to redirect trace output to files in TSO session

PostPosted: Thu Jul 15, 2010 9:23 pm
by opcfkam
Dear expert:

Is there any possible way to redirect rexx trace output to dataset instead of interactively during TSO session (NOT batch mode). Because I have rexx pgm with ISPF table update which have transient error and I wish to capture what happen to the program.

thanks

Re: how to redirect trace output to files in TSO session

PostPosted: Thu Jul 15, 2010 10:38 pm
by NicC
You could try allocating SYSPRINT to a dataset but I do not know if Trace writes its output to SYSPRINT or some other DD name.

Re: how to redirect trace output to files in TSO session

PostPosted: Fri Jul 16, 2010 12:01 pm
by expat
Never actually tried this from foreground, but DDname SYSTSPRT is used for batch.

Re: how to redirect trace output to files in TSO session

PostPosted: Sun Jul 18, 2010 12:11 am
by NicC
I have tried putting SYSTSPRT and SYSPRINT to dataset but, unless I am doing summat wrong, the output from trace still goes to the screen.

Re: how to redirect trace output to files in TSO session

PostPosted: Mon Jul 19, 2010 4:03 pm
by expat
Yup, me too

Re: how to redirect trace output to files in TSO session

PostPosted: Sat Jul 24, 2010 5:14 pm
by NicC
I have obtained a process that works but...if your program is interactive you will not get a prompt - if your interactivity is via ISPF screens only then it may work - I have not tested that yet nor have I asked the originator of the code - yet.

Re: how to redirect trace output to files in TSO session

PostPosted: Thu Jul 29, 2010 8:32 pm
by parthiban
Hi ,

Try using OUTTRAP function.Put TRACE command and statement inside outtrap function.And you can store it in any stem and use it.

thanks,
parthibanj

Re: how to redirect trace output to files in TSO session

PostPosted: Thu Jul 29, 2010 10:22 pm
by NicC
Outtrap does not trap trace output and trying this really messes up an interactive session.