Page 1 of 1

Need to add more details in job log

Posted: Wed Aug 15, 2007 8:00 pm
by cosec
The Job Log we currently have is very limitted and only indicates if the job is successful or not.

Is there any sample code to add to the script to give the following details
A)
i) Job Status
ii) Number of Rows Written
iii) Number of Rows Looked up

B)
how do I get the director log for a particular run to be output into the batch log ?

Posted: Wed Aug 15, 2007 8:07 pm
by chulett
A) ETLStats. Say 'Thank you Mr Kim.'

B) See A.

Posted: Wed Aug 15, 2007 8:19 pm
by cosec
Thanks but how do I accomplish the above using a shell script....
it seems that is much simpler....


chulett wrote:A) ETLStats. Say 'Thank you Mr Kim.'

B) See A.

Posted: Wed Aug 15, 2007 8:29 pm
by ray.wurlod
What? Reinventing the wheel is easier than using an already-invented wheel? Please reconsider.

It's definitely NOT "much easier using a shell script, since the job logs are database tables.

Posted: Thu Aug 16, 2007 1:59 am
by cosec
I already have a shell script to give me the jobs status but I am trying to add the number of records extracted and written.....I am not sure which variable/parameter to use. How do I find that out ?

I was able to get what I needed using Kim's Doc but I also want to try the above. Thanks

Posted: Thu Aug 16, 2007 6:16 am
by kduke
The job that can extract row counts from old log records is written in BASIC. You might be able to use dsjob -logsum or -logdetail to get what you want. If you want the last run only then dsjob -report will give you that.

Posted: Thu Aug 16, 2007 4:07 pm
by ray.wurlod
Maybe you could also use dsjob -linkinfo, with a lot of preliminary mucking about to determine the stage name and link name.