Top
Systemwalker Operation Manager Troubleshooting Guide
FUJITSU Software

5.1.3 The Job Completion Code is Always 0 [Windows versions]

Applicable versions and levels

Action

Cause

The last line in the batch file may be REM or the goto command. In this case, the batch file returns 0.

The next batch file may appear to end with completion code 10 or 90, however it always ends with 0.

Example of a batch file in which the completion code is always 0

if "%1" == "" goto argerr

setecode.exe 10
goto end

:argerr
setecode.exe 90
rem

:end

Action method

To make the above batch file end with completion code 10 or 90, add the exit command to the end of the batch file, or define the file as follows so that REM or the goto command is not executed last.

Example of a batch file that ends with any completion code

if "%1" == "" goto argerr

setecode.exe 10
exit

:argerr
setecode.exe 90