where the job logs getting stored

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sathishmca
Participant
Posts: 43
Joined: Mon Mar 03, 2008 10:58 pm
Location: Chennai

where the job logs getting stored

Post by sathishmca »

Hi all,

I need help on the following,

Where the job logs getting stored in UNIX server and how to clear the logs via UNIX server instead of using Datastage director/clear log?

Thanks in Advance.

Regards,
Sathish Bhojan
Sathish Bhojan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Job logs are stored in hashed files under the associated project directory. They take the name of RT_LOGnnn where 'nnn' is the internal number assigned to the job in the repository.

You can access them using the 'dsjob' function, which supports the same log access functions as does DataStage:

-logsum
-logdetail
-lognewest
-craig

"You can never have too many knives" -- Logan Nine Fingers
sjfearnside
Premium Member
Premium Member
Posts: 278
Joined: Wed Oct 03, 2007 8:45 am

Post by sjfearnside »

I have used the following procedures to clear log files. I am using DataStage V8.0.1.

- Logon on to the administrator client for the domain
- Select the Projects tab
- Select the project containing the log file
- Select the command button
- In the command window; enter the following command -
'CLEAR.FILE RT_LOGXXX', without the quotes, where XXX is the number.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

By doing so you lose any job log purge settings you may have had.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sathishmca
Participant
Posts: 43
Joined: Mon Mar 03, 2008 10:58 pm
Location: Chennai

Post by sathishmca »

sjfearnside wrote:I have used the following procedures to clear log files. I am using DataStage V8.0.1.

- Logon on to the administrator client for the domain
- Select the Projects tab
- Select the project containing the log file
- Select the command button
- In the command window; enter the following command -
'CLEAR.FILE RT_LOGXXX', without the quotes, where XXX is the number.
Is there any env variable or command to see the logs for particular job in UNIX ?
Sathish Bhojan
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes, "dsjob -logdetail MyProject MyJob" would list the detailed log for job 'MyJob' in project 'MyProject'
sjfearnside
Premium Member
Premium Member
Posts: 278
Joined: Wed Oct 03, 2007 8:45 am

Post by sjfearnside »

I have used the following to find the number used to associate a job to its RT_LOGXXX file, where XXX is the number.

- Logon to the administrator client
- Select the project
- Select the command button

at the command window enter the following command without the quotes.
"SELECT NAME,JOBNO FROM DS_JOBS WHERE NAME NOT LIKE '\\%';"

This will provide a list of the jobs for the project and the corresponding number for each job. This number will be the same number used in the RT_LOGXXX file name.
sathishmca
Participant
Posts: 43
Joined: Mon Mar 03, 2008 10:58 pm
Location: Chennai

Post by sathishmca »

ArndW wrote:Yes, "dsjob -logdetail MyProject MyJob" would list the detailed log for job 'MyJob' in project 'MyProject' ...
Thanks..

Still i need logs of last run if suposse job might have throw some fatal errors or warnings ..How to get this info?
Sathish Bhojan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As already noted, use "dsjob" with the various "-log" functions. Read the Server Job Developer's Guide chapter on the Command Line Interface for explanations of their use.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sathishmca
Participant
Posts: 43
Joined: Mon Mar 03, 2008 10:58 pm
Location: Chennai

Post by sathishmca »

chulett wrote:As already noted, use "dsjob" with the various "-log" functions. Read the Server Job Developer's Guide chapter on the Command Line Interface for explanations of their use. ...

Thank you very much..
Sathish Bhojan
sathishmca
Participant
Posts: 43
Joined: Mon Mar 03, 2008 10:58 pm
Location: Chennai

Post by sathishmca »

chulett wrote:Job logs are stored in hashed files under the associated project directory. They take the name of RT_LOGnnn where 'nnn' is the internal number assigned to the job in the repository.

You can access ...

Hi Chulett..

You told that all log info stored in hashfiles ..Can we clear the logs depends on jobs in UNIX?
Sathish Bhojan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you are asking if you can clear job logs from the UNIX command line, the answer is no. Best to get your Auto Purge settings right and let that happen automatically.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply