Sending the Stop message to DataStage from 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

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... not wonder you couldn't check for a return value of 88. These kind of details are important to disclose up front.

Have you looked at the source code for the ExecSHSilent routine? It returns a zero on success or a 1 for any failure. So your script may pass back an '88' but the routine you used doesn't. :?

If you want full control, use DSExecute in your routine in pretty much exactly the same general way you are using the ExecSHSilent routine. Difference is it just runs something, it's totally up to you to handle the results, log whatever you want logged, etc etc.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

It's not letting me to enter DSExecute instead of ExecSHsilent in Rotine Name. Do you want me to put DSExecute in Input Arg of Routine Activity ?

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You would need to write your own custom routine that preps and calls DSExecute, then run that.
-craig

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