Datasets for a job

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Datasets for a job

Post by nishtala »

Hi

Is there a command like dsjobs -lstages to find out what all datasets are used in a patricular job.

Example : If job A has 3 data sets a,b,c

output of command be like

Job A a
Job A b
Job A c

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

Post by ArndW »

There is no functionality to do this straight out of the box, particularly from the command line. One option is to do a full project export into a .dsx and then to use a tool such as sed or awk to parse out the relevant job names and datasets; that won't take much effort.
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Post by nishtala »

Thanks for the reply ...

it seems a long way I was hoping to see some ORCHADMIN command or some thing like that...

I will check more options if you know any shorter way plaese let us know...

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

Post by ray.wurlod »

Just look at the generated OSH or, even better, the score.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Post by AmeyJoshi14 »

Hi,
You can query the Datastage Database... :!:
With help of DS Gurus.....i have created the query.....but not able to test it right now... :roll:
Hope this will help you out... :wink:

Code: Select all

SELECT 
DS_JOBS.NAME FMT '50L'AS JOB_NAME,
EVAL DS_JOBOBJECTS."@RECORD<15,1>" AS DATASET_NAME
FROM
DS_JOBS,
DS_JOBOBJECTS
WHERE
DS_JOBS.JOBNO=DS_JOBOBJECTS.OBJINO
GROUP BY
JOB_NAME,
DATASET_NAME
http://findingjobsindatastage.blogspot.com/
Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works. and nobody knows why! (Albert Einstein)
Post Reply