How to get sequence name from DS_JOBS?

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
rajendharreddy
Participant
Posts: 46
Joined: Tue Aug 21, 2007 5:39 am
Location: Bangalore, India

How to get sequence name from DS_JOBS?

Post by rajendharreddy »

Hi,

I have following two requirements.

1) How to get only sequence name list from the project?
2) How to get the individual job name list which belongs to
particular sequence.

Actually, I have used "SELECT NAME FROM DS_JOBS", but it retrieves all the jobs plus sequences. But here I need to get only sequence names in first stage. Then jobs which belong to a sequence in second stage.

Can any one help me on this?

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

Post by ray.wurlod »

DS_JOBS has a job type indicator that can be used to filter by job type. This has been shown before; a Search will find it.

There is a recent (currently active?) thread on getting the job list from a sequence. Are you interested in design time (all the job activities in the job sequence) or run time (just the jobs that were called from the sequence because of the execution logic)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajendharreddy
Participant
Posts: 46
Joined: Tue Aug 21, 2007 5:39 am
Location: Bangalore, India

Post by rajendharreddy »

Hi Ray,

I fired "SELECT * FROM DS_JOBS", it retrieved only 4 columns (i.e. Job name, Description, No. and Category). I have not found Job type.

I tried with below query, but it has trown error.

SELECT NAME FROM DS_JOBS WHERE JOB_TYPE='Sequence'

Error: Unexpected symbol "JOB_TYPE"

Could you please tell me the exact query?

Thanks.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Code: Select all

LIST DICT DS_JOBS
And please try searching the forums, this has been a very popular topic lately and people get tired of explaining the same thing over and over. And over.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply