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

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
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

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

Post 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?
robjones
Participant
Posts: 24
Joined: Tue Nov 18, 2008 3:12 pm
Location: London

Post 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;
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Run dsjob command from unix shell with appropriate parameters.
Arvind
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

here is the command line prompt to get list of JObs.

dsjob -ljobs <Project NAME>
thanks n regards
nani
robjones
Participant
Posts: 24
Joined: Tue Nov 18, 2008 3:12 pm
Location: London

Post 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.
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Post 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"
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Check whether your PATH includes bin of datastage.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

You need to run from $DSHOME folder
Srinu Gadipudi
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Post 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...
Regards,
Ganesh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

DSHOME=`cat /.dshome` ; export DSHOME
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ranabrata_r
Participant
Posts: 1
Joined: Mon Jan 11, 2010 12:09 am

Universe shell need help

Post 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 ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply