▪ Control-M system variables
Name | Format | Description |
%%$DATE | yyyymmdd | Current system date (4-digit year). |
%%$NEXT | yyyymmdd | Next scheduling date for the job (4-digit year). |
%%$ODATE | yyyymmdd | Original scheduling date of the job (4-digit year). |
%%$OYEAR | yyyy | Original scheduling year of the job (4-digit year). |
%%$PREV | yyyymmdd | Previous scheduling date for the job (4-digit year). |
%%$RDATE | yyyymmdd | Installation current working date (4-digit year). |
%%$RYEAR | yyyy | Installation current working year (4-digit year). |
%%$YEAR | yyyy | Current system year (4-digit year). |
%%APPLGROUP | string | Name of the group to which the job belongs. |
%%APPLIC | string | Name of the Application to which the job’s group belongs. For z/OS jobs the %%APPL variable is used to reference the Application name. |
%%BLANKn | n spaces | Resolves to n blanks, where n is a number between 1 - 214. |
%%CENT | yy | First two digits in the current year (for example, 20 in year 2006). |
%%CYCLIC | Y|N | This variable is used in the command line of the ctmorder utility to override the Cyclic parameter in cases where the user wishes to order a single run of a job that is defined as cyclic. Y – job is cyclic N – job should be run only once. |
%%DATACENTER | string | Name of the Control-M/Server for the current ControlM installation. This variable is available on certain Control-M computers as of ControlM version 2.20. However, prior to CONTROLM/EM version 6.1.02, %%DATACENTER returned the host name for the current ControlM/Server. |
%%DATE | yymmdd | Current system date. |
%%DAY | dd | Current system day. |
%%GROUP_ORDID | nnnnnn | Order ID of the Active Folder to which the job belongs. ▪ This variable is valid only for jobs in an Active folder and it is evaluated in base 10. ▪ This variable has been retained for versions of Control-M earlier than version 7.0.00. |
%%JOBNAME | string | Name of the submitted job. This variable can be used to override the value specified for the JOBNAME parameter (for example, in the ctmorder utility). On a Microsoft Windows computer, JOBNAME must comply with Microsoft naming conventions (for example, it cannot contain / and \ characters). |
%%JULDAY | nnn | Current system day of the year (Julian format). |
%%MEMLIB | string | Mem Lib (name of the library or directory in which job script is stored) of the job. |
%%MONTH | mm | Current system month. |
%%NEXT | yymmdd | Next scheduling date for the job. |
%%ODATE | yymmdd | Original scheduling date of the job. |
%%ODAY | dd | Original scheduling day of the job. |
%%OJULDAY | nnn | Original scheduling day of the year (Julian format). For example, 36 for February 5th. |
%%OMONTH | mm | Original scheduling month of the job. |
%%ORDERID | nnnnnn | Unique job order ID under ControlM. |
%%OWDAY | d | Original scheduling day of the week of the job (1= Sun., 2= Mon., and 0=Sat.). |
%%OWNER | string | Owner (user ID) associated with the job. |
%%OYEAR | yy | Original scheduling year of the job. |
%%POSTCMD | command | Specifies a command to run immediately after running the job defined by MEMNAME. The return code is ignored. Not relevant for z/OS jobs. Relevant only for ControlM/Server version 6.0.01 or later, or (without OUTPUT) for any job submitted by Control-M/Agent for Microsoft Windows 2000 version 6.0.01 or later. This variable is not used with SMART Folder. |
%%PRECMD | command | Specifies a command to run immediately before running the job defined by MEMNAME. The return code is ignored. Not relevant for z/OS jobs. Relevant only for ControlM/Server version 6.0.01 or later, or (without OUTPUT) for any job submitted by Control-M/Agent for Microsoft Windows 2000 version 6.0.01 or later. This variable is not used with SMART Folder. |
%%PREV | yymmdd | Previous scheduling date for the job. |
%%RDATE | yymmdd | Installation current working date. |
%%RDAY | dd | Installation current working day. |
%%RJULDAY | nnn | Installation current working day of the year (Julian format). For example, 36 for February 5th. |
%%RMONTH | mm | Installation current working month. |
%%RUNCOUNT | nnnn | Number of times the job order has been submitted for execution (that is, the first time the job is being submitted, this variable returns a value of 1). |
%%RWDAY | n | Installation current working day of the week (1=Sun., 2=Mon., and 0=Sat.). |
%%RYEAR | yy | Installation current working year. |
%%SCHEDTAB | string | Name of the job’s folder. This variable is available on certain ControlM computers as of ControlM version 2.2x. |
%%FOLDER_ID | nnnnnn | Order ID of the folderto which the job belongs. This variable is valid only for jobs in an active folder and it is evaluated in base 10. |
%%TIME | hhmmss | Time of day. |
%%WDAY | n | Current system day of the week (1=Sun., 2=Mon., and 0=Sat.). |
%%YEAR | yy | Current system year. |
The following variables are not assigned values until after the job is submitted or completes execution. These variables can be used only for the Notify, , and Set Variable parameters.
Variables that return runtime statistics for a job must be resolved before the variables can return any values. Variables for job statistics: %%AVG_CPU, %%AVG_TIME, %%SD_CPU, and %%SD_TIME.
Run the ctmjsa utility to compile data in the Statistical Details table before specifying the required Variable statistics variable. For more information, see Statistics and reporting and ctmjsa utility in ControlM Utilities.
Run the ctmjsa utility to compile data in the Statistical Details table before specifying the required Variable statistics variable. For more information, see Statistics and reporting and ctmjsa utility in ControlM Utilities.
Actions system variables
Name | Format | Description |
%%AVG_CPU | numeric | Average CPU time (in seconds) for previous runs of the current job. Do not use this variable in a SMART Folder definition. |
%%AVG_TIME | numeric | Average run time (in seconds) for previous runs of the current job or SMART Folder. |
%%COMPSTAT | numeric | variable used in lambdaCompletion code assigned to the job by the operating system of the computer that executes the job. Initial value: 0. |
%%JOBID | string | Identification assigned to the job by the operating system of the computer that executes the job. Do not use this variable in a SMART Folder definition. |
%%NODEID | string | Host ID of agent computer that submitted the job. This variable is available for certain computers as of ControlM version 2.2x. |
%%SD_CPU | numeric | Standard deviation of the CPU time (in seconds) from the average CPU time for previous runs of the current job. Do not use this variable in a SMART Folder definition. |
%%SD_TIME | numeric | Standard deviation of the elapsed run time (in seconds) from the average elapsed run time for previous runs of the current job or SMART Folder. |
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论