question on returned 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
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

question on returned status code

Post by mystuff »

I am using the following code in a script. Browsing throught he site I found one of this code

Code: Select all

JOB_STATUS=`dsjob -jobinfo $PROJECT $DSJOB | head -1 | cut -d"(" -f2 | cut -d")" -f1`
I have a question on this, what are status returned code 3, 96?

What is the status code for Aborted/Restartable
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First place to check:

$DSHOME/include/dsapi.h

I'm honestly not sure how you tell the different between "Aborted" and "Aborted/Restartable".
-craig

"You can never have too many knives" -- Logan Nine Fingers
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

Post by mystuff »

I'm honestly not sure how you tell the different between "Aborted" and "Aborted/Restartable".
I have a requirement where I need to JUST run the job if its status is "Aborted/Restartable" and reset and run if job status is "Aborted"

looks like 3, 96 both represent aborted. I GUESS one of them might be "Aborted" and other "Aborted/Restartable"
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

Post by mystuff »

tried my luck , "Aborted" and "Aborted/Restartable" returns the same value 3 :(

What does the value i.e. returned code 96 signify in datastage terms. I saw the dsapi.h and it says "Job was stopped by some indeterminate action". don't know what it means (like stopped/aborted etc).
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's fair, bcause the job sequence has aborted in each case.
Restartable is clearly a different flag somewhere.

"Stopped" is usually stopped by operator - that is, a Stop request was issued.
"Crashed" is an internal error which is usually sufficiently severe as to preclude any diagnosis.
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