When the Batch Client exits it returns a result code to the calling program based on the exit condition of the script. There are two possible scenarios based on the StopOnError setting.
StopOnError = False (-S0)
If StopOnError is false the return code indicates general success or failure.
0 = success (no errors)
-1 = failure (one or more errors occurred)
StopOnError = True (-S1)
When StopOnError is true the Batch Client exit when an error occurs and returns a code based on the following table. By default, StopOnError is set to True.
The batch client returns the following result codes in the event of success or failure.
In a DOS batch file or Windows command file the error can be checked as follows:
Call epma-batch-client.bat .\scripts\MyScript.txt IF ERRORLEVEL 0 goto ON_SUCCESS IF ERRORLEVEL 100 goto PARSE_ERROR If ERRORLEVEL 101 goto APP_CREATE_FAILED