DS_Audit - last deleted job

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
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

DS_Audit - last deleted job

Post by attu »

PLease help me how to check a job last deleted by date in Audit Table

SELECT * FROM DS_AUDIT WHERE CLASS ='2' AND LAST DELETED DATE = 2008-09-08

getting error.

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

Post by ray.wurlod »

What error?

Please help us to help you.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

DataStage/SQL: syntax error Unexpected symbol. Token was LAST.
Scanned command was FROM DS_AUDIT SELECT * WHERE CLASS ="2" AND LAST
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Column names in DS_AUDIT don't have spaces in them. The error message showed that DataStage/SQL was happy with everything up to "LAST". But not with "LAST DELETED DATE". The correct name for the column, from memory, is PREVDTD (but you should check this with LIST.DICT DS_AUDIT). Also, since these are string timestamps, you may not find it with just a date unless you use LIKE and a wildcard for the time component.

Code: Select all

SELECT * FROM DS_AUDIT WHERE CLASS ='2' AND PREVDTD LIKE '2008-09-08%'; 
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply