Is there a way to find what jobs have Before/After Exec Shel

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
DS4DRIVER
Premium Member
Premium Member
Posts: 39
Joined: Thu Oct 30, 2003 1:37 pm

Is there a way to find what jobs have Before/After Exec Shel

Post by DS4DRIVER »

Is there a way to list the Jobs that have Before or After Exec Shell from a Project.

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

Post by ArndW »

I would to an export into a .DSX or .XML file and then use string searches to find those jobs that do so. There is no builtin method to do this.
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Go to http://compilewitch.x2.nu/ and contact look through the screen and see if this is what you like to. If it is request a demo. The demo does fit your request but does not compile more than 5 jobs.
Wolfgang Hürter
Amsterdam
DS4DRIVER
Premium Member
Premium Member
Posts: 39
Joined: Thu Oct 30, 2003 1:37 pm

Post by DS4DRIVER »

Is there a way using Universe Query or Use Basic COmmands?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I think it can be done with a query since the data is actually contained within the DS_JOBOBJECTS hashed file, and I know it can be done with a BASIC program.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Before routines are stored in field 9 and 10 has after routines in the ROOT record.

Code: Select all

SELECT EVAL "@RECORD<9>" AS BEFORE_ROUTINE
FROM DS_JOBOBJECTS 
WHERE OBJIDNO = (SELECT JOBID FROM DS_JOBS WHERE NAME = '<<Job Name>>') 
AND OBJIDNAME = 'ROOT' ;
I stole this code from Ray's post yesterday. You can figure out after routines.
Mamu Kim
Post Reply