how to redirect trace output to files in TSO session



IBM's Command List programming language & Restructured Extended Executor

how to redirect trace output to files in TSO session

Postby opcfkam » Thu Jul 15, 2010 9:23 pm

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
opcfkam
 
Posts: 2
Joined: Thu Jul 15, 2010 9:01 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby NicC » Thu Jul 15, 2010 10:38 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby expat » Fri Jul 16, 2010 12:01 pm

Never actually tried this from foreground, but DDname SYSTSPRT is used for batch.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

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

Postby NicC » Sun Jul 18, 2010 12:11 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby expat » Mon Jul 19, 2010 4:03 pm

Yup, me too
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

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

Postby NicC » Sat Jul 24, 2010 5:14 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby parthiban » Thu Jul 29, 2010 8:32 pm

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
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Thu Jul 29, 2010 10:22 pm

Outtrap does not trap trace output and trying this really messes up an interactive session.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post