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.
Additional information
Description
Usage
Optional
Format
Name
Value
Length
Name: 1-40
Value: 1-4000
z/OS:
Name: 1-66
Value: 1-66
Invalid Characters
None
Alternate Names
Control‑M/EM Utilities: VARIABLE
Reporting Facility: VARIABLE
Control‑M/Server Utilities:-variable
Control‑M/EM API: variable
A special %%# prefix 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:
Job Submission variables pass parameters to a job or set the job’s working parameters. For more information, see Job submission variables.
System variables are automatically assigned values using system information available at the time of job submission (for example, %%DATE contains the current system date). For more information, see Control-M system variables.
User-defined variables can be defined in a number of different ways for inclusion in various job processing parameters. For more information, see User-defined variables.
Variable lists. The %%LIBMEMSYM special variable can be used to point to a file containing a list of assignments statements to be applied to a job. This variable enables you to create one or more lists of assignment statements that can be applied to many job processing definitions. For more information, see Variable lists.