Page 1 of 1

How can we list out all the jobs present in a DataStage Proj

Posted: Fri Jan 08, 2010 4:13 am
by srai
Hi All

How can we list out all the jobs present in a DataStage Project?
Are any way there to generate an excel/doc containing all the job names in a particular project?

Posted: Fri Jan 08, 2010 4:25 am
by robjones
If you're familiar with the Universe shell, you can query the DS_JOBS table to find what you need.

You'd simply need to use:

SELECT NAME FROM DS_JOBS;

Posted: Fri Jan 08, 2010 4:35 am
by arvind_ds
Run dsjob command from unix shell with appropriate parameters.

Posted: Fri Jan 08, 2010 4:37 am
by nani0907
here is the command line prompt to get list of JObs.

dsjob -ljobs <Project NAME>

Posted: Fri Jan 08, 2010 4:42 am
by robjones
nani0907 wrote:here is the command line prompt to get list of JObs.

dsjob -ljobs <Project NAME>

That's a great tip. Thanks Nani.

Posted: Fri Jan 08, 2010 6:37 am
by srai
nani0907 wrote:here is the command line prompt to get list of JObs.

dsjob -ljobs <Project NAME>

Hi,

I tried running the above mentioned commond from UNIX prompt
but getting message as

"-bash: dsjob: command not found"

Posted: Fri Jan 08, 2010 7:41 am
by Sainath.Srinivasan
Check whether your PATH includes bin of datastage.

Posted: Fri Jan 08, 2010 8:15 am
by srinivas.g
You need to run from $DSHOME folder

Posted: Fri Jan 08, 2010 11:44 am
by dganeshm
srai wrote:
nani0907 wrote:here is the command line prompt to get list of JObs.

dsjob -ljobs <Project NAME>

Hi,

I tried running the above mentioned commond from UNIX prompt
but getting message as

"-bash: dsjob: command not found"
Set the dsenv and then run the command..

Go to ../../I*/I*/S*/DSE* then . ./dsenv.. then you should be able to run the command...

Posted: Fri Jan 08, 2010 12:04 pm
by chulett
This is version 7, not 8 so the path is not quite so 'complex'. Simplest solution is to cd to the $DSHOME/bin directory and run dsjob with a "dot slash" in front of it:

./dsjob -ljobs etc etc

Posted: Fri Jan 08, 2010 5:07 pm
by ray.wurlod

Code: Select all

DSHOME=`cat /.dshome` ; export DSHOME

Universe shell need help

Posted: Mon Jan 11, 2010 3:30 am
by ranabrata_r
robjones wrote:If you're familiar with the Universe shell, you can query the DS_JOBS table to find what you need.

You'd simply need to use:

SELECT NAME FROM DS_JOBS;
Hi robjones thanks for the reply but need help on universal Shell --- how can we run the query from Unix ?

Posted: Mon Jan 11, 2010 3:40 am
by ray.wurlod
Welcome aboard.

On DSXchange we encourage posters to Search for solutions; typically you are not the first with any particular question.

Secondly, we discourage hijacking other people's threads. You need to start a new thread (assuming that your search is unsuccessful) on how to invoke the DataStage shell.