Substituting variables
About this task
IBM Z Workload Scheduler supports the automatic substitution of variables during job setup and at job submission. IBM Z Workload Scheduler also supplies several standard variables, which you can use in your job. You can create your own variables, which are stored in variable tables in the scheduler database.
The scheduler supplies variables
that you can use in the OCL instructions. For example:
COMPL APPL(TEST02) IAD(&OYMD1) IAT(&OHHMM)
IF &OHHMM > '1930' THEN ADD APPL(TEST01)The
scheduler variables are organized into four groups:
- Occurrence-related variables
- Operation-related variables
- Date-related variables
- Dynamic-format variables
For details on the IBM Z Workload Scheduler-supplied variables, see Variable substitution.
IBM Z Workload Scheduler-supplied Variables lists the most common IBM Z Workload Scheduler-supplied variables.
| Variable | Description |
|---|---|
| OADID | Application ID |
| ODD | Occurrence input arrival day of month in DD format |
| ODDD | Occurrence input arrival day of the year in DDD format |
| ODMY1 | Occurrence input arrival date in DDMMYY format |
| ODMY2 | Occurrence input arrival date in DD/MM/YY format |
| OHHMM | Occurrence input arrival hour and minute in HHMM format |
| OMMYY | Occurrence input arrival month and year in MMYY format |
| OYMD | Occurrence input arrival date in YYYYMMDD format |
| OYMD1 | Occurrence input arrival date in YYMMDD format |
| OYMD2 | Occurrence input arrival date in YY/MM/DD format |
| OYMD3 | Occurrence input arrival date in YYYY/MM/DD format |
| OJOBNAME | Operation job name |
| OOPNO | Operation number within the occurrence, right-justified and padded with zeros |
| OWSID | Workstation ID for current operation |
| CDD | Current day of month in DD format |
| CDDD | Day number in the current year |
| CHHMM | Current hour and minute in HHMM format |
| CHHYY | Current month within year in MMYY format |
| CYMD | Current date in YYYYMMDD format |
| CYYMMDD | Current date in YYMMDD format |