How to find the list of Jobs those have run today (in UNIX)

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
sridhar.b
Participant
Posts: 6
Joined: Tue Oct 30, 2007 9:51 am

How to find the list of Jobs those have run today (in UNIX)

Post by sridhar.b »

Hello

How to find the list of jobs (in UNIX) those have run today?

Suppose, there are 100 jobs in my project. Out off all the jobs 89 jobs have run today. How to get those list?

Thanks in advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.
You need a simple script.
Step 1. dsjob -ljobs projectname
Step 2. Iterate through this list using dsjob -jobinfo projectname jobname to get the start/finish times. Compare these to current date and you have the desired solution.
Last edited by ray.wurlod on Mon Feb 25, 2008 1:14 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sridhar.b
Participant
Posts: 6
Joined: Tue Oct 30, 2007 9:51 am

Post by sridhar.b »

ray.wurlod wrote:Welcome aboard.
You need a simple script.
Step 1. dsjob -ljobs projectname
Step 2. Iterate through this list using dsjob -jobinfo projectname jobname to get the start/ ...
Thanks for your reply.
Yes, we can get the start ans end time of the job.
But I need only the list of the jobs those ran today(current day).
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Compare that to "today's date" and build your list.
-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 »

Do consider purchasing premium membership which will let you see the entire posts of premium posters.

All of the revenue from premium memberships is devoted to the hosting and bandwidth charges incurred by DSXchange. So, by taking premium membership you are not only helping yourself, you are also helping to keep DSXchange alive.
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