AutoSys Workload Automation

 View Only

 Add new variables into Auto* job run-time variables list

CHIA MIN Lim's profile image
CHIA MIN Lim posted Feb 07, 2025 02:32 AM

Hi Everyone,

We noticed that AutoSys have a list of built in variables based on this article in the knowledge base :-

Auto* Job Runtime Varaibles

Broadcom remove preview
Auto* Job Runtime Varaibles
CA Workload Automation AE - Scheduler (AutoSys) Autosys Workload Automation Issue/Introduction We are looking for the list of all the Auto* job run-time variables. Example: Environment Workload Automation AE (AutoSys) Resolution The following variables are available in the job run-time environment: AUTO_JOB_NAMEAUTORUNAUTOSERVAUTO_JOB_PIDAUTOPID AUTOUSERAUTOSYSAUTOSERVAUTOROOT
View this on Broadcom >

Is it possible to add new variable into this list so that it works the same way as $AUTO_JOB_NAME where it can be called by all the jobs that need to use the new variables?

Thank you.

 

Michael Woods's profile image
Broadcom Employee Michael Woods

Hi,

We actually have this item on the roadmap for later this year.  I'm curious on what your use case is for the variable.

Regards,

Mike

CHIA MIN Lim's profile image
CHIA MIN Lim

Hi Michael,

We have a situation where we need to retrieve date and time upon the job run according to certain format. And we noticed that if we use the current global variable feature in AutoSys, we need to create additional predecessor jobs for each successor jobs that uses the global variables to trigger the SENDEVENT command to update the global variables before the successor job can use that global variable. Which is why we would like to know if we can add the date & time variables that work the same way as $AUTO_JOB_NAME.

Thank you,

Best Regards

Michael Woods's profile image
Broadcom Employee Michael Woods

Hi,

The ability to use keywords for date is also something we have planned, but it will be after the autosys variables being made available.

Could you give some examples of what you would need?  For example something like $TODAY, $MONTH or $NOW.  Would there be any math required like $TODAY-3 for three days ago?  Of course, the date formats would need to be part of it as well.

CHIA MIN Lim's profile image
CHIA MIN Lim

Hi Michael,

We usually encountered the needs to use the date & time variables especially in job type like HTTP ( under the provider_ur attribute, e.g: "http://abc.com:0101/Reports/generate-reports/$${DAY}-$${MONTH}-$${YEARS}?version=1") , SCP and FTP ( used as file name) . So, we hope to have a built in variables such as Today's Date, Year, Month, Day, and day offset ( math calculation required) with certain format, such as YYYYMMDD, DD-MM-YY and etc, variable for DateTime, time in certain format such as yyyy-MM-dd HH:mm , yyyy-MM-dd HH:mm:ss available in AutoSys to be used in job

Thank you,

Best Regards