I have exported a Data Services job for testing and out as job_dummy.sh. The content of the job is a scripts with these lines:
exec('[$$Lib_Scripts]/return_code.sh', 'FAILED 66', 0);
raise_exception_ext('##### Yahoo!!! Failed ! ######', 55);
A sub unix scripts of return_code.sh is created also just to return the exit code out, like such:
I have also vi the job scripts job_dummy.sh, and insert a job launcher flag of -s as such:
AL_RWJobLauncher "/Inst/DataService/dataservices/log/JS_LSL01/" -ws
Then I run the job scripts by issuing ./job_dummy.sh , and after that I keyed echo at unix command line --> echo "$?". I hoped to capture any return code or message from the job either is no 66 or 55, so that the third party job scheduler can take proper action against the return code.
However, I failed to get the return code out to the unix. May I know the correct way?