All Forums Tools
taruntrehan 43 posts Joined 10/12
25 Jul 2014
TPT : Suppress or Redirect stdout/stderr logs

I am using TPT to load an extract. The job is running fine but it prints a lot of statements to the stdout of unix.
Example :

Job end:   Mon Jul 14 10:08:43 2014
Job start: Mon Jul 14 10:08:23 2014
Update__person_mst: Rows Deleted:  0
Update__person_mst: Rows Inserted: 6
Update__person_mst: Rows Updated:  0
Update__person_mst: entering DML Phase
Update__person_mst: connecting sessions
Update__person_mst: disconnecting sessions
Update__person_mst: entering Cleanup Phase
Update__person_mst: preparing target table(s)
Update__person_mst: private log not specified
Update__person_mst: entering Acquisition Phase
Update__person_mst: entering Application Phase
Job step Load__person_mst completed successfully
Teradata Parallel Transporter Update Operator Version
Update__person_mst: End   : Mon Jul 14 10:08:43 2014
Update__person_mst: Start : Mon Jul 14 10:08:27 2014
DataConnector__person_mst: TPT19221 Total files processed: 1.
Update__person_mst: Total processor time used = '1.07 Second(s)'
DataConnector__person_mst: TPT19003 NotifyMethod: 'None (default)'
Update__person_mst: The job will use its internal retryable error codes
DataConnector__person_mst: TPT19008 DataConnector Producer operator Instances: 1
Teradata Parallel Transporter DataConnector__person_mst: TPT19006 Version
Job completed successfully
Teradata Parallel Transporter Version
Job id is, running on develop
Job log: /opt/teradata/client/14.10/tbuild/logs/

I want to either suppress these or redirect them to a log file.
Can someone suggest how this can be accomplished ? What option or code needs to be added to my tbuild script ?

Regards, Tarun Trehan
taruntrehan 43 posts Joined 10/12
25 Jul 2014

I was able to redirect to a log file using a standard redirect unix operator
tbuild > xyz.log
However, just wondering if TPT has some log tracel level implementation to prevent this level of IO in case one is moving large number of tables. ?

Tarun Trehan

dnoeth 4628 posts Joined 11/04
25 Jul 2014

"level of IO"? For a few lines? You're joking :-)
if you don't want that output redirect to /dev/null


taruntrehan 43 posts Joined 10/12
25 Jul 2014

Nopes, Jokes aside here. :)
I am loading 550+ tables and this was just a snapshot of some logs that are written by TPT.
50+ lines for every job, It seems wasteful at times and i am more keen to know the trace levels settings for bettwe management and debugging.

Tarun Trehan

dnoeth 4628 posts Joined 11/04
26 Jul 2014

Hi Tarun,
I don't think you can switch off the output to stdout within TPT.
The TRACELEVEL option controlling what is written to the log is set to NONE by default, setting it to a higher level might produce a really huge log (but that's not written to stdout by default).


feinholz 1234 posts Joined 05/08
26 Jul 2014

I believe TPT supports the -o command line option to write out the "console" output to a file. The redirection works just fine as well.
That console output is just a "brief" output to show progress of the job (and we get requests from customers all of the time to add more information to the console output so that they do not have to go to the verbose logs to get job status; we try to be careful how much information we output to the console).
The TraceLevel atrtribute controls the amount of information written by the operators in their private logs (virtual logs within the .out file). TraceLevel is usually only recommended when trying to analyze a problem with a job. The default/standard output by the operators usually provide all of the necessary information for the user.
The real lengthy information is in the log (the .out file).
As Dieter indicated there is no option to disable console output.


taruntrehan 43 posts Joined 10/12
26 Jul 2014

People, thanks for the inputs.

Tarun Trehan

You must sign in to leave a comment.