We are using latest version of agent (11.3 SP4) on windows 2012 R2 server to schedule the job runs. The jobs were created without mentioning the std_out_file, but still we got the job failure with the below mentioned errors related to std_out_file path access.
<Error redirecting stdout file>
[*** ALARM ***]
CAWA_E_20002 Unable to create STDOUT: Access is denied..Error code: 5
What would be the reason for the error and how can we change the default spool location?
As per autosys product design the job run log will be written to spool file temporarily (it will be cleared for a successful job completion and this can also be set in agentparm.txt parameter as per our requirement, “oscomponent.joblog.success.autocleanup” is the parameter for the same). The reason for the error is that the job owner is not having access to the spool directory location to write the output.
We can modify the spool directory location to any common location where all the user is having access. The location can be modified in agentparm.txt and the attribute is “spooldir=”.This will not harm the normal functioning of an agent machine.
Note: You can also mask the std_out_file of a job, if you really do not want to capture.
Masking procedure details are available in below document links.
Release: ATSYHA99000-11.3.5-Workload Automation AE-High Availability Option