Job not resolving $AUTOSYS

Document ID : KB000013407
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

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 11.3.xPlatform - LinuxDatabase - Any
Answer:

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.