Job completes successfully in AutoSys, while the script executed by the job exits with 256
search cancel

Job completes successfully in AutoSys, while the script executed by the job exits with 256

book

Article ID: 370758

calendar_today

Updated On:

Products

Autosys Workload Automation Workload Automation Agent

Issue/Introduction

Job executes a perl script.  The script fails with an exit code of 256 but the job completes with SUCCESS in AutoSys.

Environment

Workload Automation AutoSys

Cause

On Linux/Unix platforms, exit code of a process is set to between 0 and 255.  When it's bigger (higher) than 255, it is reset to one between 0 and 255.  256 or multiple of 256 are set to 0.

Resolution

Work with the application team to modify the script that is being executed by the job. Check for the exit/failure code. If it is a multiple of 256, reset it to one between 0 and 255.

Save and retest the script outside of AutoSys first and then as a job via AutoSys