AutoSys Workload Automation

 View Only

 How to add date to jil log paths

Gerald Britton's profile image
Gerald Britton posted Nov 04, 2022 03:30 PM
In my autosys jil (Windows), I have logging set up like this:

std_out_file: <servername>\autosys_log\%AUTO_JOB_NAME%-%AUTORUN%.std.out

I want to add the current date to the path, so e.g. for today that would be:


std_out_file: <servername>\autosys_log\2022-11-04\%AUTO_JOB_NAME%-%AUTORUN%.std.out


How can I get that to work? I need some way of dynamically inserting the current date in the output path.
Gene Howard's profile image
Broadcom Employee Gene Howard

Please see the below KB articles that should help you out here
Using Environment Variables/Global Variables in WAAE Job Log Filenames
https://knowledge.broadcom.com/external/article?articleId=10791

Adding a date time stamp to a standard out file name in Windows

https://knowledge.broadcom.com/external/article?articleId=32782