Passing Return Codes Back to the Calling Program

There are two methods for passing return codes back from the called program to the calling program. You can use the:

Note that, the operating system limits the return value to two bytes, if you use the IF ERRORLEVEL syntax to check the return value.