How to know ,after certain date which Job modified.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

How to know ,after certain date which Job modified.

Post by swades »

All,

I did search the forum,but not found any reasonable focus.
I want to know after certain date ,which job has been modified?
Is there any way we can know?
Any help would be appreciated.

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

Post by chulett »

Define 'modified'. :wink:

The Manager will show you "Date/Time Modified" but that doesn't necessarily mean anything changed.
-craig

"You can never have too many knives" -- Logan Nine Fingers
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: How to know ,after certain date which Job modified.

Post by gateleys »

The DS_AUDIT universe file maintains such metadata.

gateleys
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Re: How to know ,after certain date which Job modified.

Post by swades »

gateleys wrote:The DS_AUDIT universe file maintains such metadata.
Where this file stored
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: How to know ,after certain date which Job modified.

Post by gateleys »

swades wrote:
gateleys wrote:The DS_AUDIT universe file maintains such metadata.
Where this file stored
Its a DS repository file. You can't just open it .... its hashed.
How do you query a universe file? One simple way is to do a select all on that file from DS Admin client.

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

Post by ray.wurlod »

Code: Select all

SELECT INSTANCE, DTM, MODIFIER, REASON 
FROM DS_AUDIT
WHERE CLASS = '2'   -- select only jobs 
AND INSTANCE = '<<Job name>>'
AND DTM >= '<<yyyy-mm-dd>>'
WHEN DTM >= '<<yyyy-mm-dd>>';
The WHERE clause restricts the result set to those jobs with a DTM in the specified range; the WHEN clause limits the display to those DTM values that match the criteria. Without the WHEN clause you will get the entire modification history of the job. Omit the restriction on job name to get all jobs.

Execute this command from the Administrator client command window or from the DataStage shell (TCL) on the server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Post by swades »

Thanks to all,

It works. :D
Post Reply