Page 1 of 1

Is it possible to capture the UNIX exit code from DS

Posted: Fri Sep 08, 2006 1:51 am
by 120267
Hi,

We are calling one shellScript stored in param InputArg1 using "Call 'DSU.ExecSH'(InputArg1, result1) " , The shell will exit with different set of exit codes such as 5,4 and i have to capture the return codes and act accordingly.But the "result1" is always having 0 or 1.Will you please help me on how to capture the return codes from the shell.

Posted: Fri Sep 08, 2006 6:56 am
by kcbland
I suggest you look at the code for ExecSH and copy it to a new Routine, modify it to behave as you desire, and then use your new one.

Posted: Sun Sep 10, 2006 3:03 am
by ray.wurlod
Prefer DSExecute(). The third argument captures the output and the fourth argument captures the exit status.