How do we know who mades the changes?

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
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

How do we know who mades the changes?

Post by dspxlearn »

Hi all!!

Just curious to know-
If someone opens a job and saves without making any changes, can we by any chance know who has made the 'Save' ?
What in case of a job and in case of a shared container?
Because, in shared container we would not have logs stored
Thanks and Regards!!
dspxlearn
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There is an audit trail loaded into the DataStage hashed file called DS_AUDIT; this does store information including which user saved a given job or container but it doesn't contain any details on what changes were made.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Modifications are actually in a nested table called DS_AUDIT_MODS. Search the forum for column names you can use to query DS_AUDIT, which you can do using DataStage/SQL, or a Hashed File or UniVerse stage.
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 »

This will help you. perticularly Ray's post.

Thanks
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

swades,

Ray's code was-

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>>'

Can it be used for shared containers also?
I was using the below code for shared containers. I couldn't get any result...

Code: Select all

SELECT INSTANCE, DTM, MODIFIER, REASON FROM DS_AUDIT 
WHERE CLASS = '2'AND INSTANCE = 'sharedcont' 
AND DTM >= '2007-05-07' WHEN DTM >= '2007-05-07';
[/code]
Thanks and Regards!!
dspxlearn
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

That would only work for objects called "sharedcont". Shared containers are actually in the class 24 so the original SQL wouldn't find them.
Post Reply