RunProcess
Posted: Thu Jan 12, 2023 2:12 am
Hi all,
Need some clarity on the RunProcess return value. I have setup some validation in the sub process and if something goes wrong, it will add up the error counter and ProcessBreak. This will skip everything and goes directly to Epilog (here I have some important procedure to remove some generated files), and at the end of Epilog, if the error counter is > 1, then it will do ProcessError.
In the main process, I'm trying to capture the result of the RunProcess function like so:
Return_Value = RunProcess (cProcess, 'Organization', 'CT2')
When I ASCIIOUTPUT the return value, I am expecting empty string to be returned, surprisingly the job IDs are returned.
Referring to IBM doc on RunProcess function, it says 'The string is the JobID, or an empty string if an error occurs.'
Can anyone help me to understand what am I doing wrong here.
Thank you.
Need some clarity on the RunProcess return value. I have setup some validation in the sub process and if something goes wrong, it will add up the error counter and ProcessBreak. This will skip everything and goes directly to Epilog (here I have some important procedure to remove some generated files), and at the end of Epilog, if the error counter is > 1, then it will do ProcessError.
In the main process, I'm trying to capture the result of the RunProcess function like so:
Return_Value = RunProcess (cProcess, 'Organization', 'CT2')
When I ASCIIOUTPUT the return value, I am expecting empty string to be returned, surprisingly the job IDs are returned.
Referring to IBM doc on RunProcess function, it says 'The string is the JobID, or an empty string if an error occurs.'
Can anyone help me to understand what am I doing wrong here.
Thank you.