Audit DS jobs

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
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Audit DS jobs

Post by shrey3a »

Hi,

For Audit purpose I need to know the jobs changed for todays date.

I'm running the command

SELECT DTM, MODFIFIER FROM DS_AUDITS
0r

SELECT * FROM DS_AUDITS
or

SELECT MODIFIER, DTM
FROM UNNEST DS_AUDIT ON MODS

but it gives me name of all the jobs been modified I need to add the where clause for todays date and I'm not sure of the syntax.


-Thanks
Munish
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The syntax is SQL, but there was a thread here earlier today which will answer your question.
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

Hi ,

IS there is any DS component in DS_AUDIT for mod date as I want to select all the jobs modifief for today only like

SELECT MODIFIER, DTM FROM DS_AUDIT WHERE DS_JOBS.MODIFIED_ON >= 2004-10-04 00:00:00

the above SQL do not work for where clause.

Thanks
- Munish
vcannadevula
Charter Member
Charter Member
Posts: 143
Joined: Thu Nov 04, 2004 6:53 am

Post by vcannadevula »

shrey3a wrote:Hi ,

IS there is any DS component in DS_AUDIT for mod date as I want to select all the jobs modifief for today only like

SELECT MODIFIER, DTM FROM DS_AUDIT WHERE DS_JOBS.MODIFIED_ON >= 2004-10-04 00:00:00

the above SQL do not work for where clause.

Thanks
- Munish
Try this

SELECT * FROM DS_AUDIT WHERE DTM > '2006-01-14 00:00:00'
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Code: Select all

SELECT * FROM DS_AUDIT WHERE DTM > EVAL "OCONV(@DATE-1, 'D/MDY[2,2,4]')"
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I thought the column name was DTM, not MODIFIED_ON. There is no SQL - anywhere - that allows you to query successfully with made-up column names.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kcshankar
Charter Member
Charter Member
Posts: 91
Joined: Mon Jan 10, 2005 2:06 am

Post by kcshankar »

Hi Minish,
For Audit purpose I need to know the jobs changed for todays date.

I'm running the command
use CLASS ='2' to get only the status of the jobs.

Code: Select all

SELECT * FROM DS_AUDIT WHERE DTM > '2006-02-01 00:00:00' AND CLASS = '2'

regards
kcs
Post Reply