Retriving Table Names used in a 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
Ragunathan Gunasekaran
Participant
Posts: 247
Joined: Mon Jan 22, 2007 11:33 pm

Retriving Table Names used in a job

Post by Ragunathan Gunasekaran »

Hi ,
Any idea of how to take the tables used in a job.
Regards
Ragu
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search the forum. Chuck Smith has a utility, Kim Duke has a utility. Or you can interrogate the Repository if you prefer to re-invent the wheel.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

If you are using server then Repository Assistant can help extract job designs into Access.
Mamu Kim
cundyp
Premium Member
Premium Member
Posts: 53
Joined: Tue Feb 06, 2007 10:57 am

sequence routine stage sql DataStage 7.5.2

Post by cundyp »

I have used a sequence routine stage to call a routine which will create a list of jobs in which a particular table is used.
The TableName variable can be replaced with FileName and will create a list a list of jobs in which a particular file is used.

*------Searching for all jobs with vTableName ------*
cmd = \SELECT DISTINCT EVAL DS_JOBOBJECTS."IF INDEX(@RECORD,'\:vTableName:\',1) > 0 THEN 'FOUND' ELSE 'NTFND'",\
cmd := \ DS_JOBS.NAME AS JOB_NAME FMT '40L' \
cmd := \ FROM DS_JOBS,DS_JOBOBJECTS \
cmd := \ WHERE DS_JOBS.JOBNO = DS_JOBOBJECTS.OBJIDNO\
cmd := \ ORDER BY 1,2;\

The sql can also be executed at the Administrator Command Line (as a
single string).
Pete Cundy
Leawood, Kansas
Post Reply