none
error code pass RRS feed

  • Question

  • We are using a lot of run program activity file to run a command line batch file, which in turn runs a Powershell script, which in turn runs sqlplus file.  We know run program activity always return success unless it checks process exit code. 

    For the batch file we have exit /b %error level% set at the bat file, but it can only catches the error in the bat file. How can we catch powershell error code , in turn pass it to batch %error level%.  Even better how can we pass sqlplus error code to powershell, then to bat, then to run program activity.

    Thanks


    Thanks

    Tuesday, September 17, 2019 10:09 PM

Answers