condition_code attribute ignored

book

Article ID: 109949

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

A CMD job is failing with an exit code of 3. This is actually a successful job execution. We want to tell AutoSys that this exit code is acceptable for this job and allow the remainder of the batch cycle to process uninterrupted. When updating the job definition to use the condition_code job attribute, we receive an error indicating "WARNING for JOB: TEST_JOB For job_type of CMD, CANNOT specify "condition_code". Attribute ignored.

Environment

Release:
Component: ATSYS

Resolution

This parameter is not applicable to the CMD job type. It only applies to zOS Regular jobs. That is, jobs that is run on the mainframe. If you wish for this job to be marked successful on UNIX or Windows, please have a look at the "success_codes" job attribute instead.

References:
condition_code attribute: https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-job-information-language/jil-job-definitions/condition_code-attribute-specify-a-code-to-indicate-success-or-failure
success_codes attribute: https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-job-information-language/jil-job-definitions/success_codes-attribute-define-exit-codes-to-indicate-job-success