tricky job

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
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

tricky job

Post by koolsun85 »

hello everyone,


There is a tricky situation where jobs are running in production.
I need to build a job where i should get the count and the names of the jobs finished, aborted , finished with warning and not complied.

Thanks in advance.
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

If you know the exact no. of jobs, you can achive this by having a master sequence. But not sure about the job in not compiled state.

Btw, what is the use of having jobs in not compiled state in PROD and also the count of them? how does that matters?
Arun
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

they wanted to know the number of jobs
when i queried to find the number of jobs it says 1245 jobs
Its ok not to know the details of not compiled jobs...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to build a job to do this or can you do something from the command line? I ask because you can script this using dsjob which can be simpler for people if they haven't done much work with the DSGet* API functions and BASIC.
-craig

"You can never have too many knives" -- Logan Nine Fingers
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

Can also do from the command line... replies welcome..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then look at the various dsjob options as noted, for example -ljobs to get a list of jobs then loop thru them and issue a -jobinfo for each one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

I didnt get it right.. can u reply me with the full syntax.,...
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

Details :

project name is : "ANWRM23
Last edited by koolsun85 on Thu Aug 12, 2010 2:22 pm, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The dsjob Command Line Interface is fully documented, plus has full 'usage' statements if you run it with missing arguments like any good UNIX command. So you need to do some research, as noted check on the following options:

dsjob -ljobs
dsjob -jobinfo


Between those two you'll get everything you need, I do believe.
-craig

"You can never have too many knives" -- Logan Nine Fingers
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

Thanks for reply, will post after searching
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Install EtlStats and save some time.
Mamu Kim
Post Reply