How to create Global Variable in Autosys?

user4900074 picture user4900074 · May 25, 2018 · Viewed 7.4k times · Source

Do I need to create global variable before I can run the Autosys job below? If so how do i create one? I inherited some legacy code from someone and now I'm pulling my hair trying to figure out how to do that.

insert_job: AUTOSYS_TEST_VARIABLE   job_type: c
command: sendevent -E SET_GLOBAL -G TEST_VARIABLE=TRUE
machine: MACHINE_ALIAS
owner: testowner
permission: gx,mx
description: set global variable
alarm_if_fail: 1
profile:/home/test/dbreplication.env
timezone: US/Eastern

Answer

user4900074 picture user4900074 · May 31, 2018

sendevent -E SET_GLOBAL -G TEST_VARIABLE=TRUE defines and set the TEST_VARIABLE. The reason it wasn't working for me was because I need to have specific pattern of variable name for my application.