IBM DSNUTILB symbolic variables
Variable | Result |
|---|---|
&JOBNAME Short name: &JO | z/OS job name |
&STEPNAME Short name: &ST | z/OS step name |
&USERID Short name: &US | User ID of the person running the job |
&UTILID Short name: &UT | Utility ID truncated to 8 characters |
&SSID Short name: &SS | Subsystem ID for non-data sharing or the group attachment name for data sharing |
&ICTYPE Short name: &IC | Single-character image copy type |
&UTILNAME Short name: &UN | Utility name truncated to 8 characters |
&SEQ Short name: &SQ | Sequence number of the LISTDEF list item |
&LOCREM Short name: &LR | Single character L (for the local site) or R (for the recovery site) |
&PRIBAC Short name: &PB | Single character P (for the primary ddname) or B (for the backup ddname) |
&LIST Short name: &LI | Name of the list for the LISTDEF |
&DB | Database name |
&TS | Table space name |
&IS | Index space name |
&SN | Space name for table space or index space |
&PART Short name: &PA | Five-digit partition number padded with leading zeros |
&DSNUM | Five-digit partition number for partitioned objects, or five-digit piece number for linear objects, padded with leading zeros |
&DATE Short name: &DT | YYYYDDD |
&TIME Short name: &TI | HHMMSS |
&JDATE Short name: &JU | YYYYDDD |
&YEAR Short name: &YE | YYYY of &DATE |
&MONTH Short name: &MO | MM |
&DAY Short name: &DA | DD |
&JDAY Short name: &JD | DDD of &DATE |
&HOUR Short name: &HO | HH of &TIME |
&MINUTE Short name: &MI | MM of &TIME |
&SECOND Short name: &SC | SS of &TIME |
Eight-digit unique alphanumeric characters derived from the system clock at the time of allocation |
The following DSNUTILB syntax is generated:
LISTDEF COPYLIST
INCLUDE TABLESPACE DBVCREG.RGTSCLL1
PARTLEVEL(0)
TEMPLATE COPY0001
DSN
'RDAJLW.&DB..&TS..&IC.&PA(3,3)..D&YEAR(4,1).&JD..T&TI.'
UNIT SYSALLDA
DISP(NEW,CATLG,UNCATLG)
SPACE(10,20) CYL
EATTR
COPY LIST COPYLIST
COPYDDN( COPY0001 )
PARALLEL(9) TAPEUNITS(9)
/*
Some example messages generated after running the DSNUTILB syntax are as follows:
DSNU1035I 025 11:20:27.49 DSNUILDR - LISTDEF STATEMENT PROCESSED SUCCESSFULLY
DSNU050I 025 11:20:27.49 DSNUGUTC - TEMPLATE COPY0001 DSN 'RDAJLW.&DB..&TS.. &IC.&PA(3,3)..D&YEAR(4,1)
.&JD..T&TI.' UNIT SYSALLDA DISP(NEW, CATLG, UNCATLG) SPACE(10, 20) CYL EATTR
DSNU1035I 025 11:20:27.49 DSNUJTDR - TEMPLATE STATEMENT PROCESSED SUCCESSFULLY
DSNU1038I 025 11:20:27.82 DSNUGDYN - DATASET ALLOCATED. TEMPLATE=COPY0001
DDNAME=SYS00001
DSN=RDAJLW.DBVCREG.RGTSCLL1.F000.D1025.T172027 ============== data set name resolved from the symbolic variable pattern