How to create a list of jobs by category

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
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

How to create a list of jobs by category

Post by Pierre »

Hi,

I wrote a .bat file that creates a list of jobs by category in a csv file.
I would like to add to this file a column to indicate scheduled jobs.

Is there any simple way do do that (without redirecting "at" in a file) ?
I just need to know if the job is scheduled or not...


Thanks.
Pierre.

** Note: Subject changed to be more descriptive - Content Editor **
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That information is only stored in 'at' so yes, you'll need to redirect and interrogate the 'at' schedule.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

Post by Pierre »

OK, thank you for your response.

Pierre.
venkatvelpula
Participant
Posts: 80
Joined: Sat Mar 18, 2006 10:27 pm

Post by venkatvelpula »

Let me know, How did you do to get list of jobs?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

dsjob with the -ljobs option, I would imagine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vbarca
Premium Member
Premium Member
Posts: 35
Joined: Tue Sep 09, 2008 6:23 am
Location: Chapel Hill, NC

Post by vbarca »

chulett wrote:dsjob with the -ljobs option, I would imagine.
dsjob with the -ljobs option will give you the list of jobs in a project but not by category as Pierre states he did. That is what I am looking to do.

Pierre, can you tell us how you got the list of jobs by category?

Thanks,
Vince
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

Post by Pierre »

from my project dir (Ascential\Datastage\Projects\MyProject), I launch

!DirDSBin!\dssh SELECT CATEGORY FMT'80L', NAME FMT'80L' FROM DS_JOBS WHERE NAME NOT LIKE '\%%' ORDER BY CATEGORY, NAME; > OutputFile.csv

where !DirDSBin! is my Ascential\Datastage\engine\bin dir.
Post Reply