When you define passwords for VSAM catalogs in CMS, or when you use CMS to access VSAM catalogs that have passwords associated with them, you must supply the password from your terminal when the A!SERV command
executes. The message that you receive to prompt you for the password
is the same message you receive when you execute access method services:
4221A ATTEMPT 1 OF 2. ENTER PASSWORD FOR JOE A!SERV FILE catalog When you enter the proper password, AMSERV continues execution.
DEFINING AND ALLOCATING SPACE FOR VSAM PILES You can use CMS AMSERV to allocate additional data spaces for VSA!. To
use the DEFINE SPACE control statement, you must have defined the
catalog that is to control the space, and you must have the volume or
volumes on which the space is to be allocated mounted and accessed.
For example, suppose you have a DOS-for.atted 3330 disk attached to
your virtual machine at virtual address 255. After accessing the disk
and determining the free space on it, you could create a file named SPACE AMSERV: DEFINE SPACE -
(FILE (FILE1) - TRACKS (1900) - VOLUME (123456) - CATALOG (PRIVATE.CAT2 CAT2) )
To execute this A!SERV file, define PRIVATE.CAT2 as a user catalog using the ddname CAT2, and then define the ddname for the FILE para.eter:
access 255 c
assgn sysOl0 c
dlbl cat2 c dsn private cat2 (sysOl0 vsam assgn sys011 c
dlbl file1 c (extent sysOl1 cat cat2
Note that you do not need to enter a data set name to define the space. When CMS prompts you for the extents of the space you can enter the
extent specifications: DMSDLB331R ENTER EXTENT SPECIFICATIONS: 190 1900 When you define space for VSAM, you should be sure that the VOLUMES paraaeter and the space allocation parameter (whether CYLINDER, TRACKS, or RECORDS) in the ASSERV file agrees with the information you provide
in the DLBL command. All data extents must begin and end on cylinder
boundaries. Any additional space you provide in the extent information
that is beyond what you specified in the AMSERV file is claimed by VSAM. 194 IBM VM/370 CMS User's Guide
March 30, 1919 When you are specifying extents for a master catalog, data space, or
unique file, you can specify up to 16 extents on a volume for a
particular space. When prompted by eMS to enter the extents, you must separate different extents by commas or place them on different lines.
To specify a range of extents in the above example, you can enter:
dlbl file1 c (extent sys011 190 190, 510 190, 1900 1520 (null line)
or -- dlbl file1 c (extent sys011 190 190 510 190 1900 1520 (null line)
Again, the first number entered for each extent represents the relative
track for the beginning of the extent and the second number indicates
the number of tracks. You can define spaces that span up to nine volumes for VSAM files; all
of the yolumes must be accessed and assigned when you issue the DLBL
command to define or identify the data space. You should remember, though, that if you are using AMSERV and you do
not use the PRINT option, you must have a read/write eMS disk so that AMSERV can write the output LISTING file.
If you are defining a new multivolume data space or unique cluster,
you must specify the extents on each volume that the data is to occupy
(starting track and number of tracks), followed by the disk mode letter
at which the disk is accessed and the programmer logical unit to which
the disk is assigned:
access 135 b
access 136 c
access 131 d
assgn sys001 b
assgn sys002 c
assgn sys003 d
dlbl newfile b (extent sys001 DMSDLB331R ENTER EXTENT SPECIFICATIONS: 100 60 b sys001, 400 80 b sys001, 60 40 d sys003 2000 100 c sys002 (null line)
If you specify more than one extent on the same line, the extents must be separated by commas; if you enter a comma at the end of a line, it is
ignored. Different extents for the same volume must be entered
consecutively.
Note that in the preceding example, the extent information is for
2314 disks; and that these extents are also on cylinder boundaries. When you enter multivolume extents you can use a default mode. For
example: Section 10. Using Access Method Services and VSAM 195
Previous Page Next Page