This procedure describes how to add a variable parameter to jobs. You can define variables in a job definition to enable sharing data between multiple jobs.
To add a variable:
EXAMPLE: %%<variable_name>
EXAMPLE: %%\<variable_name>
EXAMPLE: %%\\<named_pool>\<variable_name>
EXAMPLE: %%\\<variable_name>
NOTE: The SMART folder option in the Variable Type drop-down list appears when the job is included in the SMART folder.
For more information on variables, see User-defined variables.
If Named Pool is selected, the Pool Name field appears. In the Pool Name field, type the name of the pool.
A variable is added to the job definition.
EXAMPLE: A user-defined variable for the day before yesterday is needed in the job script. Do the following:
In the Variable Name field type, TwoDaysAgo.
In the Variable Type field, select Local.
In the variable value field, type %%DAY %%MINUS 2.
NOTE: %%DAY is a system variable. %%MINUS is an operator.
The Variables Simulation window appears.
For information about Variables Simulation, see Variable Simulation.
NOTE: The resolved value is a reflection of the data that is available at the time of running the Variable Simulation. For example, %%ODATE is the current Control-M/Server date.
Parent Topic |