The %%LIBMEMSYM variable can be used in the Variable Assignment or Do Variable parameters to indicate a text file containing a list of Variable assignments. This variable enables you to create a central file containing Variable assignment statements that can be read by many job processing definitions.
Multiple LIBMEMSYM statements can be included in a single job processing definition. In this way you can maintain groups of local or global variables that are relevant to certain jobs, and allow more than one such group to be applied to a job. However, if a variable is defined in more than one list, the last list defined overrides previous lists.
The format for the %%LIBMEMSYM variable:
%%LIBMEMSYM=path_name
path_name is the full (case sensitive) path name of a text file containing Variable assignment statements. This file must be accessible to Control‑M. The file must contain a single assignment on each line.
For z/OS jobs, a variable list can be specified using the %%LIBSYM and %%MEMSYM variables. If a %%LIBMEMSYM variable is specified for an z/OS job, it is treated as a user-defined variable, and does not reference a variable list.
EXAMPLE: If a job processing definition contains the following specifications for the Variable Assignment parameter:
And the file /controlm/ctm/variable.common1 contains the following entries:
When the job is submitted for execution by Control‑M, variables are resolved as if the Variable Assignment parameter contained the following entries:
Parent Topic |