Dsjob run Status Code

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
iwin
Premium Member
Premium Member
Posts: 99
Joined: Mon Apr 11, 2005 9:20 pm

Dsjob run Status Code

Post by iwin »

Hey,
I am trying to run a DS job from command line using Dsjob and the job status code i know are generally '1' for success and '3' for Abort. Could anyone guide me what are the other status codes that can be found and their values like status code for '2','4' etc.....

Thanks in Advance.
Every person you meet knows something you don't, Learn from them.
-- H. Jackson Brown
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Post by paddu »

HI

2 is Job finished with warnings

4 i guess is for job still waiting

Correct me gurus if i am wrong

Thanks
Paddu
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Job status=0 -> Job running
Job status=1 -> Finished Ok
Job status=2 -> Finished with warnings
Job status=3 -> Aborted
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

They can be found in the dsapi.h file under $DSHOME/include:

Code: Select all

/* 'jobStatus' values... */

#define DSJS_RUNNING            0       /* Job running */
#define DSJS_RUNOK              1       /* Job finished a normal run with no warnings */
#define DSJS_RUNWARN            2       /* Job finished a normal run with warnings */
#define DSJS_RUNFAILED          3       /* Job finished a normal run with a fatal error */
#define DSJS_VALOK              11      /* Job finished a validation run with no warnings */
#define DSJS_VALWARN            12      /* Job finished a validation run with warnings */
#define DSJS_VALFAILED          13      /* Job failed a validation run  */
#define DSJS_RESET              21      /* Job finished a reset run */
#define DSJS_CRASHED            96      /* Job was stopped by some indeterminate action */
#define DSJS_STOPPED            97      /* Job was stopped by operator intervention (can't tell run type) */
#define DSJS_NOTRUNNABLE        98      /* Job has not been compiled */
#define DSJS_NOTRUNNING         99      /* Any other status */
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Now this is a post that belongs in my favourites :wink: .
This question has comeup one to many times. I think it should be added to the FAQ forum.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
iwin
Premium Member
Premium Member
Posts: 99
Joined: Mon Apr 11, 2005 9:20 pm

Post by iwin »

chulett wrote:They can be found in the dsapi.h file under $DSHOME/include:
Thanks Craig. It helps.
Every person you meet knows something you don't, Learn from them.
-- H. Jackson Brown
Post Reply