- Example 1 creates the first volume of a multivolume data set, TMS.TEST.
VOL 100001
VER DSN=HEXZEROS
REP DSN=TMS.TEST,VOLSEQ=1
REP 1STVOL=100001,NEXTVOL=100002,PREVVOL=HEXZEROS
- Example 2 creates the second volume of a two-volume data set, TMS.TEST.
VOL 100002,NOCHAIN
VER DSN=HEXZEROS
REP DSN=TMS.TEST,VOLSEQ=2
REP 1STVOL=100001,NEXTVOL=HEXZEROS,PREVVOL=100001
- Example 3 verifies the data set name of the first volume (created in Example 1).
VOL 100001
VER DSN=TMS.TEST
- Example 4 updates EXPDT and LJOB without verification.
VOL 100200,NODSN
REP EXPDT=ZEROS,LJOB=DFACCT01
- Example 5 changes the vendor name for all volumes in the specified range but does not affect the status of any of these volumes. Only the VENDOR field and the UPDATED BY USER flag would be affected (and some Audit-related fields).
VOL 980001-981000,NOCHAIN,NODSN
REP VENDOR=IBM
- Example 6 changes the EDMID from HSM to ASM2 for all volumes in the specified range. In this example, TMSUPDTE tests for HSM in the EDMID field and, if present, replaces HSM with the value ASM2. If HSM is not present, the volume is bypassed.
VOL 980001-981000,NOCHAIN,NODSN
VER EDMID=HSM
REP EDMID=ASM2
- Example 7 verifies that the X'10' bit is turned on in FLAG1 and that the X'20' bit is on in FLAG3 before updating the volume to turn off the X'10' bit in FLAG1 and turn on the X'40' bit in FLAG1.
VOL 123456,NODSN
TM FLAG1=10
TM FLAG3=20
NI FLAG1=10
OI FLAG1=40
- Example 8 changes the value of STATS/998 in the expiration date field to the value 97365 wherever found in the TMC.
VOL 000001-999999,NODSN,NOCHAIN
VER EXPDT=STATS/998
REP EXPDT=97365
- Example 9 changes the expiration date to a specific date for all tapes within a specific range that have an EDMID value of HSMO.
VOL H00001-H50000,NODSN,NOCHAIN
VER EMID=HSMO
REP EXPDT=YYYY/030