Listing / Finding BEFORE SQL Statements

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
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Listing / Finding BEFORE SQL Statements

Post by MT »

Hi,

I want to trace a bug in a projekt (multiple Jobs) and therefore I have to find a certain drop / delete table statement in BEFORE SQL section of DB2 stage.

The problem must have come in by copying a stage with a BEFORE SQL statement from one job to an other - so the BEFORE SQL is still deleting my result table :(

Has anyone a UNIVERSE query for that or any other idea how to find that problem and to identify the job with the wrong BEFORE SQL statement?

Thanks in advance
Michael
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Michael, the easiest method is to do a full DataStage export and then simply search the .dsx for the SQL string, that will quickly let you identify the job(s) where it is used.
Post Reply