exit_status--System Return Code Variable

The PSL exit_status variable stores the exit status of a process invoked from a system(), popen("OS",) or execute("OS",) function. The user cannot write the exit_status variable.

The popen() function with an OS command type can set the exit_status variable asynchronously whenever its operating system child process dies. It is possible (although unlikely) that the popen() function could set exit_status after a system() or execute() function concludes but before exit_status is read for the system() or execute() call.

Where to go from here

Diagnosing PSL Program Errors

Was this page helpful? Yes No Submitting... Thank you

Comments