Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

21.1 Jobscheduler Completion Code

The job completion code is set between 201 and 256 in Jobscheduler. The job completion codes returned by Jobscheduler and their meaning are explained below:

Point

Completion codes other than 201 to 256 and unused completion codes within the range of 201 to 256 are NOT set by the Operation Manager, but they are output by the job itself. That is, they are output by any of commands, batch files, shell scripts and others being registered in the command field of the job. Check the job itself such as its commands, batch files and shell scripts.

Also, make sure that the completion codes of commands, batch files, shell scripts and others to be registered as the job are other than 201 to 256. If a value within the range of 201 to 256 is used as the return value for the job itself, it will be difficult to distinguish whether the completion code was configured by the job or by the Jobscheduler. Note that if the return value of the job itself is 255 or greater, it will be handled as 255.

Job Completion Codes Set by Jobscheduler and Their Meanings

[Windows]

Completion code

Meaning

201 to 231

The job has terminated abnormally.

232 to 238

Unused (but reserved for Jobscheduler)

239

Jobscheduler services have stopped during job execution. (Note 1)

240 to 241

Unused (but reserved for Jobscheduler)

242

Failed to copy and start job net.

243 to 244

The execution of the job (requested to Job Execution Control) has failed.

245

A variable parameter or a job definition variable contains an invalid character, or the standard output file name or the standard error output file name for the job is not specified in the full path.

246

Replacement of a variable parameter or a job definition variable resulted in the maximum string length being exceeded.

247

Job definition variable information failed to be read or written.

248

When waiting for an OR condition, other jobs among multiple preceding jobs ended normally and the succeeding job started, and the job ended without satisfying the OR condition.

249

When waiting for an OR condition, other jobs among multiple preceding jobs ended abnormally, and the job ended because the condition judgment became impossible.

250

The specified job does not exist.

251 to 254

Unused (but reserved for Jobscheduler)

255

The job completion code is 256 or greater. (Note 3)

256

The job has been canceled.

[UNIX]

Completion code

Meaning

201 to 231

[Job Execution Control attributes]

The job has terminated abnormally.

[Normal attributes]

Job terminated with a signal. The completion code is "200 + signal number". The completion codes 201, 213,218, 224, 226, and 227 will be ignored by Jobscheduler.

232 to 237

Unused (but reserved for Jobscheduler)

238

Setting job net administrator privileges (initgroups system call) failed.

239

Jobscheduler daemon stopped during job execution. (Note 1)

240 to 241

Unused (but reserved for Jobscheduler)

242

Failed to copy and start job net.

243 to 244

Failed to execute the job.

245

A variable parameter or a job definition variable contains an invalid character, or the standard output file name or the standard error output file name for the job is not specified in the full path.

246

Replacement of a variable parameter or a job definition variable resulted in the maximum string length being exceeded.

247

Job definition variable information failed to be read or written.

248

When waiting for an OR condition, other jobs among multiple preceding jobs ended normally and the succeeding job started, and the job ended without satisfying the OR condition.

249

When waiting for an OR condition, other jobs among multiple preceding jobs ended abnormally, and the job ended because the condition judgment became impossible.

250

Failed to obtain the job net administrator information (getpwnam system call). The specified job might not have existed when the job execution attribute was other than Normal. (Note 2)

251

Setting job net administrator privileges (setgid system call) failed.

252

Setting job net administrator privileges (setuid system call) failed.

253

Failed to move to the specified directory (chdir system call).

254

Failed to start the job (execvp system call).

255

Failed to start the job (fork system call). If the job execution attribute is other than Normal, job completion code is 256 or greater.

(Note 3)

256

The job has been canceled.

Note 1:

If a backup is made during job execution and if its information is restored, the job being executed is terminated abnormally with completion code 239.

Note 2:

If the job with the attribute other than Normal does not exist, an error message is output in the [Previous log] sheet of the [Monitor - Job] window.

Note 3:

If the actual completion code is 256 or greater, the following is shown in the [Job History] window.

... ended code=255.(Actual completion code)