ds job stats

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
prasannak
Premium Member
Premium Member
Posts: 56
Joined: Thu Mar 20, 2008 9:45 pm
Contact:

ds job stats

Post by prasannak »

Hi,

We have a set of common metadata tables to record statistics of job runs such as start and end times, status, etc...
I know that these information and more can be obtained from the ds api functions such as dsgetjobinfo etc...
I want to know if there is a way to get these info into oracle tables...straight from a job control...
A detailed response would be much appreciated.

If anybody has implemented this sort of a thing which i am sure people would have, it would be great if it can be shared...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ETLStats. 'Nuff said.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Doesn't Search work in your browser?
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
prasannak
Premium Member
Premium Member
Posts: 56
Joined: Thu Mar 20, 2008 9:45 pm
Contact:

Post by prasannak »

I should have mentioned that I did look into etlstats...
and I should have mentioned that I did search before asking... :roll: :wink:
But, I do not need all the html outputs etc associated with it...And etlstats seems to be kind of tightly integrated to the report generation piece...which our application does not warrant...
Moreover, we cannot install software code from outside with proper licencing and stuff like that ...so, unfortunately, installing etlstats as is would not be feasible...

But, that aside,is it a big task to outout ds api results to a persistant storage if we were to develop it in our application...
When responding, kindly understand that this might be a basic question to experts , but, i am on a learning curve here...
So, please bear with me if this question seems priliminary...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes it's a big task. Big, not difficult, just tedious.

You can get MetaStage to do it automatically, but at a (monetary) price. At least it would be properly licensed.

Apart from that, the API is there and documented, and you can examine the source code of ETLStats to see how one person has done it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

All you need is job DSJobReportDb from EtlStats. There is no licensing. It is all free. The reporting is just examples of how I monitored jobs running at one customer.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right, take only what you need from ETLStats. Or use it as a template or just as something to prime the pump, get your creative juices flowing.
-craig

"You can never have too many knives" -- Logan Nine Fingers
laxman.ds
Premium Member
Premium Member
Posts: 66
Joined: Thu Mar 02, 2006 9:00 am

Re: ds job stats

Post by laxman.ds »

Why can't you lookinto macho works driven by Chuck, Duke, Kenneth geants and get your work simplify. Otherwise it will take more time to implement the same in your way. All the best.

In otherwords, we would like to know your requirement in detail as you expected the resonse.
2 B 1 4 ALL
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

you can easily modify DSJobReportDb to update any table you like. It is just an example of how to use dsjob -report XML. This job runs this command in the before job routine. Then processes the results to load 3 tables. You can load your table if you want. Do a search there are several posts where people modified it to do something similar. This is a server job but it can get row counts on PX jobs. You could easily convert it to a PX job if you do not like server jobs. It is just an example of how this can be done. It calls a few server routines which can be eliminated as well.

dsjob -report on a PX job reports at the partition level. So you may need to aggregate the row counts to the link level. Links are in there twice. One for each stage it is connected to. So aggregate on stage name as well. You need to add partition to your ETL_ROW_HIST key if you want this level of detail. We have 200 jobs in one project and it writes 40,000 rows every run when we have it at the partition level. This is daily so it really adds up fast. Be careful.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I tried to respond to your personal message and keep getting an error. So this is my responce. By the way I really like the detail at the partition level. It helps in debugging performance.
Mamu Kim
prasannak
Premium Member
Premium Member
Posts: 56
Joined: Thu Mar 20, 2008 9:45 pm
Contact:

Post by prasannak »

A big thank you to all for your response...
really appreciate all the expert's comments and inputs...
Post Reply