The following are the methods to check the return values for each OS version.
For Windows:
echo %ERRORLEVEL%
For UNIX/Linux (b shell type)
echo $?
For UNIX/Linux (c shell type)
echo $status
For IBM
Please use the "OUTPUT" or "EXIT" parameters of various utility arguments to output error and status codes.
For the utility arguments, please refer to the "Operation manual" corresponding to each version.