Previous Topic

Next Topic

Book Contents

Book Index

Variables

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

  • 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
  • Control-M Report: VARIABLE
  • Control‑M/Server Utilities:-variable
  • Control‑M/EM API: variable

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:

Parent Topic

General parameters