search cancel

Chase command error - CAUAJM_E_10051 The environmental variable AUTOUSER is not set.

book

Article ID: 256963

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

I'm trying to run chase command but getting an error below.

CAUAJM_E_10051 The environmental variable AUTOUSER is not set.
CAUAJM_E_50032 Environment/Configuration setup failed!

 

insert_job: Test-Chase-Command    job_type: cmd
machine: host1234
owner: autosys
group: TestB
alarm_if_fail: y
alarm_if_terminated: y
send_notification: n
std_out_file: /opt/CA/joblogs/chase.out
std_err_file: /opt/CA/joblogs/chase.err
command: /opt/CA/WorkloadAutomationAE/autosys/bin/chase -A -E

Environment

Release : 12.0

Resolution

You need to source the $AUTOUSER/autosys.sh.<hostname> file to set the needed environment variables for any autosys commands.

Include the autosys.sh.<hostname> file as the profile for the job definition.

Example:


insert_job: Test-Chase-Command    job_type: cmd
machine: host1234
owner: autosys
group: TestB
alarm_if_fail: y
alarm_if_terminated: y
send_notification: n
std_out_file: /opt/CA/joblogs/chase.out
std_err_file: /opt/CA/joblogs/chase.err
command: /opt/CA/WorkloadAutomationAE/autosys/bin/chase -A -E
profile: /opt/CA/WorkloadAutomationAE/autouser.ACE/autosys.sh.host1234