Automate Schedule has several built-in variables available for a running job.

SKYBOT_JOB_RUN_ID
SKYBOT_SUITE_RUN_ID (suite members only)
SKYBOT_JOB_NAME
SKYBOT_SUITE_NAME (suite members only)
SKYBOT_AGENT_NAME
SKYBOT_SCHEDULED_DATE (YYYYMMDD)
SKYBOT_SCHEDULED_TIME (HHMMSS)
SKYBOT_SCHEDULED_MILLIS (IBM i agents only)

However, only IBM i agents automatically use these variables by default. For Windows, UNIX, Linux, and Mac agents, you need to set the variables before starting the agent to allow these variables to be used for jobs on that agent. See the instructions below:

UNIX/Linux/Mac:
SKYBOT_CONFIG_JOBINFO=true
Then, run /opt/automate-schedule/agent/start.sh to start the agent.

Windows:
Navigate to Computer > Properties > Advanced System Settings > Environment Variables > System Variables and set the SKYBOT_CONFIG_JOBINFO variable there. Then, restart the agent service. 


Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: October 24, 2019