DSExecute return code on UNIX

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

DSExecute return code on UNIX

Post by chulett »

Right now, when I run UNIX shell scripts via the DSExecute function and capture the 'System Return Code' I only seem to get back two values: either a zero for a successful completion or a 255 when the script passes back an error status.

No matter what I pass back as the exit status of the script (other than a zero, of course) postive or negative, it gets recognized as 255 in DataStage. What I'd like to be able to do is pass back various error 'statii' from a script and recognize them inside the DataStage job control so I can handle them appropriately.

Am I missing something and this can actually be done? Or is this How It Works and I am SOL? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok, nevermind... I am an idiot. This is what happens when you change a script on one server and then don't see any changes when you execute it in a job on a completely different server. :roll: Jeez.

I need to get more sleep. And a day off. :evil:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply