Job not resolving $AUTOSYS
search cancel

Job not resolving $AUTOSYS

book

Article ID: 13407

calendar_today

Updated On:

Products

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

Issue/Introduction



Running the following job:

insert_job: test

machine: host123

command: echo $AUTOSYS

owner: bautosys

...

We do not see $AUTOSYS resolved.  But when we log into server we do see it. $ echo $AUTOSYS

/opt/CA/WorkloadAutomationAE/autosys

Why does the job not see the variable?

Environment

Product - Workload Automation AE 

Resolution

Confirm if the agentparm.txt file contains an entry similar to the following: 

oscomponent.environment.variable=/opt/CA/WorkloadAutomationAE/SystemAgent/WA_AGENT/profiles/WAAE.txt

 

Also confirm the WAAE.txt file does contain the AUTOSYS environment variable.

Example:

AUTOSYS=/opt/CA/WorkloadAutomationAE/autosys

AUTOROOT=/opt/CA/WorkloadAutomationAE

The above would have the agent source the WAAE.txt profile as the part of all jobs it runs and as a result set the two variables AUTOSYS and AUTOROOT.

NOTE - Any changes to the profiles or agentparm.txt require a restart of the agent.