KBI 311365 Argent Job Scheduler Exit Code Handling


Argent Job Scheduler all versions


Monday, 28 March 2016


The Argent Job Scheduler can take actions based on Events related to an individual Job and the most important response option is the Exit Code Handling option which is defined in the Post Job component

Technical Background

Besides the generic actions that the Argent Job Scheduler can take when a Job begins or ends, the Argent Job Scheduler can be used for more complex decisions based on the condition codes returned by the Job process

Exit Code Handling can be used to look for either a specific number from the exit code, or for an exit code that falls within a range of numbers

When the testing criteria have been met, the Argent Job Scheduler can then submit another Job and/or execute an Alert definition

The Argent Job Scheduler also presents the option of interrogating the condition (exit) code to determine whether the Job should be labeled as Failed or Completed

What Is An Exit Code?

An exit code is a number that is returned when a process ends

In batch Job scheduling, exit codes are important because they can be used to monitor the results of Jobs so that automated decisions can be made

The exit code that is returned by a customer’s Job process is independent of the Job process itself

Some processes return a simple “0” if the process was successful and a “1” if it was not

Other programs can have hundreds of discriminating exit codes that are cataloged in their documentation

Also See: Creating Exit Code Files Using Argent_CC