Find/List number of Jobs ran on a Particular Day

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
Kayalbaskaran
Participant
Posts: 10
Joined: Tue Jun 24, 2008 4:27 am

Find/List number of Jobs ran on a Particular Day

Post by Kayalbaskaran »

Hi,

Is it possible to find how many jobs have run on a particular day.

Thanks,
Kayalbas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure. Biggest hurdle will be if you mean their most recent run or an older run. The former is a simple 'dsjob' query, the latter will need intact logs and more involved scripting.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

Or, if your jobs are scheduled on any scheduler like Autosys, Control-M; you can take help of its run status...
Thanks and Regards!!
dspxlearn
Kayalbaskaran
Participant
Posts: 10
Joined: Tue Jun 24, 2008 4:27 am

Post by Kayalbaskaran »

Thanks for the information.

Could you kindly let me know what dsjob query needs to be used to get the recent job run.


Thanks,
Kayalbas
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

EtlStats can get the last run of all jobs. There is a second job which can get all the job runs still in the logs.
Mamu Kim
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

dsjob -lognewest would give you the latest log details, from which you can find the date of the last run.
-logsum, -logdetail can also be used for the same purpose.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or even easier might be to (off the top of my head) use "dsjob -jobinfo" which would include that information in a format that might be a little easier to parse out.
-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 »

Open Director to Status view. In View menu disable display of categories. Click on run date column to sort by this column. Voila!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply