All variables are identified by the %% prefix. If %% is included in the value for a job processing parameter, Control‑M assumes that it is referring to a variable or function.
NOTE: A Variable name cannot start with a numeric digit.
For more information about variables, see Control-M Variable facility.
Additional information |
Description |
---|---|
Usage |
Optional |
Format |
|
Length |
z/OS:
|
Invalid Characters |
None |
Alternate Names |
|
A special %%# prefix (on Linux or UNIX) or %%%#% prefix (on Windows) can be used to indicate that a variable or function should not be resolved. In these cases, the actual name of the variable or function (minus the # sign) is output. For example, Do Notification Variable %%#PARM1 is greater than 100 issues the following message:
Variable %%PARM1 is greater than 100.
Variables are divided into the following types:
Multiple variables (each with a different scope) can have the same name. If more than one variable with the same name has been defined, the variable with the narrowest scope is used.
NOTE: The exception to this rule occurs when the variable is distributed from the Control‑M/Server to the Control‑M/Agent. The variable from the narrowest scope may not be the one that is used by the Control‑M/Agent.
NOTE: Depending on the value of the VARIABLE_INC_SEC variable of the Control‑M/Server, duplicate variables from different scopes can be distributed to the agents. For more information, see Control-M Administration.
Control‑M uses the following logic to determine which value to use when a variable is specified in a job processing definition:
NOTE: If a system variable, such as %%ORDERID is assigned to a SMART Folder, it resolves to the run ID of the job and not of the SMART Folder.
Parent Topic |