March 30, 1979
11 File: MASTCAT AMSERV 12
13
DEFINE MASTERCATALOG -
( NAME (MASTCAT) VOLUME (222222) - CYL (4) - UPDATEPW (GAZELLE) -
FILE (IJSYSCT) )
ysct dsn mastcat (li!111 perm extent DMSDLB331R ENTER EXTENT SPECIFICATIONS: 19 171
R;
14 amserv mastcat
R;
15 File: CLUSTER AMSERV 16
DEFINE CLUSTER ( NAME (BOOK. LIST ) - VOLUMES (222222) -
TRACKS (20) -
FILE (BOOK) - KEYS (14,0) -
RECORDSIZE (120,132) ) -
DATA (NAME (BOOK. LIST. DATA) ) - INDEX (NAME (BOOK.LIST.INDEX ) )
amserv cluster
4221A ATTEMPT 1 OF 2. ENTER PASSWORD FOR JOE AMSERV gazelle
R;
FILE MASTCAT 17 File: REPRO AMSERV 11
12
13
14
15
16
17 REPRO INFILE (BFILE - ENV ( RECORDFORMAT(F) -
BLOCKSIZE(120) - PDEV (3330) ) ) - OUTFILE (BOOK) The file MASTCAT AMSERV defines the VSAM master catalog that you are going to use.
Identify the master catalog volume, and use the EXTENT option on the DLBL command so
that you can enter the extents. For this extent, specify 171 tracks (9 cylinders)
for the master catalog. Since 4 cylinders are specified in the AMSERV file, the
remaining 5 cylinders will be used for suballocation by VSAM. You must enter a null line to indicate that you have finished entering extent information.
Issue the AMSERV command, specifying the MASTCAT file. The ready message indicates
that the master catalog is created.
Define a suballocated cluster. This cluster is for a key-sequenced data set, named BOOK. LIST.
No DLBL command is necessary when you define a suballocated cluster. Note that
since the password was not provided in the AMSERV file, access method services
prompts you to enter the password of the catalog, which is defined as GAZELLE. Use the access method services REPRO command to copy a CMS data file into the
cluster that you just defined.
378 IBM VM/370 eMS User's Guide
18
19
data a (recfm f lrecl 120 R;
sort test data a book file a DMSSRT604R ENTER SORT FIELDS:
1 14
R;
dlbl bfile a cms book file 11._11 book list {vsam
R;
amserv repro
Ri 20 File: SPACE AMSERV 21
22 Ri DEFINE SPACE -
( FILE (SPACE) -
TRACKS (57) - VOLUME (333333) )
amserv space SPECIFICATIONS: 4221A ATTEMPT 1 OF 2. ENTER PASSWORD FOR JOE AMSERV gazelle
R;
FILE MASTCAT 18 You must identify the dnames for the input and output files for the REPRO function.
BFILE is a CMS file, which must be a fixed-length, 120-character file, and it must be sorted alphamerically in columns 1 through 14. The COPYFILE command can copy any
existing file that you have to the proper record format; the SORT command sorts the
records on the proper fields.
19 The output file is the VSAM cluster, so you must use the VSAM option on this DLBL
comlland. 20 Create an AMSERV file to define additional space for the master catalog on the
volume labelled 333333.
21 Again, use the EXTENT option on the DLBL command so that you can enter extent
information, and a null line to indicate that you have finished entering extents.
22 Issue the AMSERV command. Again, you are prompted to enter the password of the
master catalog.
Sallple Terminal Session Using Access Method Services 379
Previous Page Next Page