Previous Topic: Control File FormatNext Topic: VMTDSP Utility (CMS and OS TMCs)


Example

Convert the tape library information in the disk file TMC DATA A1 to TMC format, and then store the converted data in the file CONVERT DATA A1.

File TMC DATA A1 contains the following records:

FDN001  FRED       D3  02  01/07/09  02/15/10  12:43  12
JOE002  JOE        D3  01  11/05/09  01/30/10  9:17    7
JOE018  HARRY      C3  02  10/10/09  07/15/10  14:16  22
FDN004  FRED       83  01  06/06/09  01/18/10  18:28  18
PD0075  PRODDATA   C3  02  04/21/09  02/14/10  22:22   3
PD0076  PRODDATA   D3  02  04/22/09  02/15/10  21:39   1
BN0007  LARRY      C3  02  01/01/09  01/09/10  11:11   9
BN0008  MIKE       D3  02  12/05/09  12/05/10  17:18  12

The fields to be converted to TMC format are the volume serial number (VOLSER), tape owner (CJOB), tape density (DEN), label type (LABEL), creation and expiration dates (CDATE and EXPDT), creation time (CTIME), and number of times the tape has been used (COUNT).

File VMTCON CONTROL A1 (the default filename) contains the following control records:

VOLSER

CHAR

0

6

CJOB

CHAR

7

8

DEN

CHAR

16

2

LABEL

CHAR

19

2

CDATE

DATE

22

8

EXPDT

DATE

31

8

CTIME

TIME

40

5

COUNT

CHAR

46

2


To convert the data to TMC format, enter the following FILEDEF commands and run the VMTCON utility:

Filedef input disk tmc data a
filedef output disk convert data a (lrecl 340 block 340 recfm f
vmtcon input output (type rejects

CA VM:Tape responds as follows:

8 RECORDS READ
0 RECORDS REJECTED

Messages indicating records read and rejected are sent to the console. Because no records were rejected, the file CONVERT DATA A1 will contain eight records in TMC format. This file can be used as input to the VMTBUILD utility to add the tape information to the TMC.