Return Code from dsjob -run OR use dsjob -jobinfo

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Return Code from dsjob -run OR use dsjob -jobinfo

Post by kommven »

Hi,

I have a unix Script which uses dsjob for datastage Job Execution.
I wanted to Know if there is there value in checking the RETURN_VALUE ($?) from the -run command? What does the $? return?
What does -255 return code mean?
OR
Is it better to reinterrogate the -jobinfo for a status other than 0, 1 or 2? I.E.
Job_Status=`dsjob -jobinfo $DSProject $DSJob | head -1 | cut -d"(" -f2 | cut -d")" -f1`
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I stick with -jobstatus rather than interogate the job again after it finishes. Perhaps this recent post would help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read about dsjob in the manual. The job status is always available on file unit #2 (stderr).
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