command to get the job creation date

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
suresh.narasimha
Premium Member
Premium Member
Posts: 81
Joined: Mon Nov 21, 2005 4:17 am
Location: Sydney, Australia
Contact:

command to get the job creation date

Post by suresh.narasimha »

Hi

Could anybody help me to get the
command to get the job creation date.

Is any possibility to change the creation date of job.If so how to trace that who changed the creation date.

This would be a great help.

thanks in Advance

Suresh N
SURESH NARASIMHA
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There is no date field embedded in the designtime information of a job, but you can look at the DS_AUDIT table in the project repository. That file will give you an audit trail of the change history for your jobs, among other information.

The DS_AUDIT table is not described or documented and does contain fields that are "multivalued" but the file itself is not overly complex and contains all the information you want.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Since you're new to the forum, and I'd guess even newer to DataStage SQL (especially for multi-valued fields), here's a starter pair of queries.

Code: Select all

SELECT INSTANCE, CREATOR, DTC
FROM DS_AUDIT
WHERE CLASS = '2' AND INSTANCE = '<<JobName>>';

SELECT MODIFIER, DTM
FROM UNNEST DS_AUDIT ON MODS
WHERE CLASS = '2' AND INSTANCE = '<<JobName>>';
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
just4geeks
Premium Member
Premium Member
Posts: 644
Joined: Sat Aug 26, 2006 3:59 pm
Location: Mclean, VA

Post by just4geeks »

This really helped me! Thanks Ray!
Attitude is everything....
Post Reply