VSAM data set allocation
Model AMS DEFINE
The values determined from the +ALLO and +VOLUMES parameters are used to build an IDCAMS DEFINE statement. These values are substituted in a model DEFINE statement that you can modify to conform to your installation requirements.
You can also effectively disable the VOLUMES parameter by changing the model DEFINE statement. If you remove the VOLUMES variable from the model statement, then any VOLUMES parameter specification will be ignored.
For more details about how to customize the model AMS DEFINE statement for your installation or for a specific Db2 subsystem, see Managing-the-model-AMS-define.
STOGROUPS
When a Db2 space is Db2-managed (that is, defined in a Db2 storage group), the following steps occur:
- A BMC AMI Utility dynamically adds volumes when the data set needs to be extended.
- If a BMC AMI Utility, while writing to a Db2 space, determines that the volume is full, the Db2 catalog definition for the storage group is accessed to find another volume.
- The volume from the STOGROUP with the largest contiguous free space is dynamically added to the list of volumes for the space using the IDCAMS ALTER ADDVOLUMES command.
- The I/O is then retried, allowing the data set to extend to the new volume.
You can specify a default list during installation. Specifying VOLUMES at execution time overrides the default. If you do not specify a volume override list, the new data set is defined on the same list of volumes used for the original data set, which is obtained from a LISTCAT of the original data set.
You can modify the model DEFINE statement during installation, for example, to support the use of SMS. If you use the variable &VOLUMES in a DEFINE keyword other than VOLUMES(&VOLUMES), for example MANAGEMENTCLASS(&VOLUMES), the value specified on the VOLUMES parameter is substituted for it.
A disadvantage of specifying multiple volumes for the DEFINE is that all the volumes after the first become VSAM candidate volumes, which are used when the data set is extended past the first volume. However, since the candidate volume number is set at the time of the original DEFINE, there is no certainty that those volumes will have space when the time comes to extend the data set.