List all jobs from command line (v6)?

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
rlewis
Participant
Posts: 11
Joined: Thu May 12, 2005 12:32 pm

List all jobs from command line (v6)?

Post by rlewis »

Hi,

I've seen a few backup type scripts which start with the list of objects in a text file. Is there a way to get that list of jobs/functions from the command line in datastage v6?
manojkumarnayak
Participant
Posts: 21
Joined: Fri Nov 04, 2005 11:31 am

Re: List all jobs from command line (v6)?

Post by manojkumarnayak »

you can use "dsjob" command

regards
manoj
rlewis
Participant
Posts: 11
Joined: Thu May 12, 2005 12:32 pm

Post by rlewis »

Unfortunately, I don't have a dsjob.exe installed on my Windows client. Is that something that is part of a standard install for datastage v6?

Or...is that only available from the Unix server?
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It is on your server. Copy it to the client.
Mamu Kim
rlewis
Participant
Posts: 11
Joined: Thu May 12, 2005 12:32 pm

Post by rlewis »

I found it on our Unix server. Thank you.

Another quick question...The list as output from this command does not include the "container hierarchy" that the designer shows. Is it possible to output each job's hierarchy as part of the listing?

For example:
Job: somejob
Contained in: \myjobs\production

Output I'd like to see from the job listing:
\myjobs\production\somejob
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Do a search for TCL commands or DS_JOBS.
Mamu Kim
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/dsenv
cd ProjectDirectory
stmt="SELECT NAME,CATEGORY FROM DS_JOBS WHERE NAME NOT LIKE '\\%' ORDER BY CATEGORY,NAME;"
$DSHOME/bin/uv $stmt > jobs_by_category
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