find a job based on job creation date

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
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

find a job based on job creation date

Post by puli.reddy »

Hi All,

Can anyone tell me, how to find the server jobs based on job creation date!
Thnaks and Regards,
AnjiReddy.
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Code: Select all

SELECT * FROM DS_AUDIT WHERE DTC> '2005-01-01' AND CLASS='2'
Success consists of getting up just one more time than you fall.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or, even better

Code: Select all

SELECT INSTANCE, CREATOR
FROM DS_AUDIT
WHERE CLASS = '2'
AND DTC > '<<Earliest date,(D)>>';
DS_AUDIT is a DataStage table that records the date/time and by whom each object was created, modified and deleted. It has no exposure in any of the clients, so you need to execute a query against the Repository database.

This query can be executed via the Administrator client Command window, or in a telnet session to the server in a dssh shell. Note also that the identifier names in DataStage/SQL are case sensitive.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

Post by puli.reddy »

Thanks for your early reply. Could you please tell me in detail where should I execute the above queries!
Thnaks and Regards,
AnjiReddy.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage Administrator client.
Projects tab.
Select your project.
Click Command button, which opens Command window.
Execute command there. Make sure that spelling and casing are accurate.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

Post by puli.reddy »

Thanks it works fine.
Thnaks and Regards,
AnjiReddy.
Post Reply