I need to get log details in my invoking shell script

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinodlakshmanan
Participant
Posts: 82
Joined: Wed Jul 14, 2004 7:21 am
Location: India

I need to get log details in my invoking shell script

Post by vinodlakshmanan »

I am calling my DS jobs through a shell script and I want to retreive some details in the DS logs, specifically start-end time, number of records, processing time of each stage, and put them in standard text files which my script uses as logs. Is this possible using dsjob or any other commands?
Integrity is what you do when no one is watching
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi Vinod,

Search the Server Edition forum. It was discussed some time back. Pls move this to the Server Edition forum you would get immediate response.

I think -logsum option coming with dsjob command should help you.

HTH
--Rich

Be quick to listen, slow to speak and slow to become angry
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi

From the command line there are options to the dsjob command that
perform similar functions, namely -logsum , -logdetail and -lognewest

$ dsjob - run "jobname" - logsum - logdetails


please try this.


Thanks
Man
vinodlakshmanan
Participant
Posts: 82
Joined: Wed Jul 14, 2004 7:21 am
Location: India

Post by vinodlakshmanan »

dsjob command in D7.0 has an option -report which can be used to get a status report of the job. This command has solved my problem
Integrity is what you do when no one is watching
Post Reply