CA 7l guidelines for jobs defined with Exitcode(s) (Return Code(s) being submitted to an agent.

Document ID:  TEC1965969
Last Modified Date:  07/05/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Workload Automation CA 7 Edition

Releases

  • CA Workload Automation CA 7 Edition:Release:11.3
  • CA Workload Automation CA 7 Edition:Release:11.3.3
  • CA Workload Automation CA 7 Edition:Release:12.0
  • CA Workload Automation CA 7 Edition:Release:12.0.0

Components

  • CA-7:7
Introduction:

When defining jobs that are submitted to an agent, it is the agent, not CA Workload Automation (CA 7) that determines the success or failure of a job.  In some cases with certain job types, you are permitted to code one or more EXITCODE statements to specify the return codes that the agent treats as success or failure.  By default, an exit code of 0 (zero) indicates job success, and any other code indicates job failure.  You can use the EXITCODE statement to define a single exit code or a range of exit codes as either success or failure.  If you specify multiple exit codes, enter the most specific exit codes first followed by the ranges.

Instructions:

The following are some examples.

Example 1:

Exit codes 0, 2, 4 indicate success.

All others indicate failure.

EXITCODE 0 SUCCESS

EXITCODE 2 SUCCESS

EXITCODE 4 SUCCESS

Example 2:

Exit codes in the range 0 through 100 indicate success.

Exit code 19 and exit codes in the range 101-200 indicate failure.

Exit codes in the range 201 through 300 indicate success.

All other exit codes indicate failure

EXITCODE 19 FAILURE

EXITCODE 0-100 SUCCESS

EXITCODE 101-200 FAILURE

EXITCODE 201-300 SUCCESS

 

 

As always, please contact CA Technologies support for CA 7 if you have further questions.

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing