The following table lists the AutoEdit System variables supported in Control-M/Tape. They can be used to insert environment information into the rule’s operation.
Table 198 Control-M/Tape AutoEdit Variables
Variable |
Description |
---|---|
%%ACCOUNT |
Account value |
%%CPUID |
CPU ID |
%%DATE |
Date of handling the event (YYMMDD format) |
%%DDNAME |
DD name |
%%DSEXPDT |
Data set expiration date
|
Note: During an OPEN event, the value of both %%DSEXPDT and %%DSEXPTYP is the abend retention. |
|
%%DSEXPTYP |
Data set expiration type |
Note: Only the first retention is supported. |
|
%%DSLABEL |
Data set label sequence number |
%%DSNAME |
Data set name |
%%ENV |
Environment ID |
%%JCLVOL |
First five volumes, separated by commas |
%%LASTACCS |
Last access operation. Possible (valid) resolution values: READ, WRITE, CREATE |
%%LBLTYP |
Label type. Possible (valid) resolution values: NL, SL, NSL, SUL, BLP, AL, AUL |
%%MEDIA |
Media name |
%%OWN001 – %%OWN999 |
Owner of volume |
%%PGMNAME |
Program name |
%%POOL |
Pool name |
%%SLN001 – %%SLN999 |
Standard Label name of volume |
%%STEPNAME |
Step name |
%%TDATE |
Actual date the event occurred (YYMMDD format) |
%%TIME |
Time of handling the event (format hhmmss) |
%%TJOBID |
Job ID |
%%TTIME |
Actual time the event occurred (format hhmmss) |
%%UCB |
UCB address. |
%%UNITGNAM |
Generic unit name. |
%%USERFLD |
User field |
%%USERID |
User ID / Job name |
%%VAULT |
Location of the volume |
%%VOL001 – %%VOL999 |
Volume serial number |
%%VOLCOUNT |
Number of volumes for the current data set |
%%WHEN |
Condition under which the event occurred. Possible (valid) resolution values: OPEN, CLOSE, MOUNT, CHECK-IN-VOLUMES, CLOSE-AFTER-ABEND, KEEP |
Note the following about system variables:
For example, if a rule is matched when a Mount for SCRATCH is requested, the value of variable %%VOL001 is not yet known. Therefore, its value is set to blanks.
Parent Topic |