The ACCVSAM option extends ACC capabilities to VSAM files. ACC can intercept the following VSAM requests, and perform nonspecific allocation. The volume(s) requested on the IDCAMS control card can be ignored, and the VSAM file can be forced to use a device pool for volume selection. The alternate device selection algorithms and alternate pool facilities are also available. The ACCVSAM option can also modify most of the VSAM parameter fields.
- DEFINE CLUSTER
- DEFINE ALTERNATE INDEX
- DEFINE GDG
- ALTER ADDVOL
- IMPORT
- ALTER GDG
- ALTER entryname (VSAM cluster or component)
- DELETE
For JCL defined VSAM requests in an MVS environment, the ACCVSAM option can also perform volume selection for non-SMS VSAM allocation requests. ACCVSAM can modify the parameter information on all JCL defined VSAM requests: SMS and non- SMS.
When a VSAM data set is allocated, the IDCAMS control cards usually specify a volume for the file. These control card definitions are commonly copied by other users, so volumes often become over-allocated.
When IDCAMS encounters a DEFINE CLUSTER control card, the utility builds a parameter list and calls the CATALOG SVC. The SVC is responsible for obtaining the space for VSAM files. ACC frontends the CATALOG SVC. This frontend allows ACC to ignore the requested volume, and then perform many of the same functions as Allocation: build an eligible device list, select candidate volume(s), and then call the CATALOG SVC to attempt allocation. If an attempt fails, ACC will determine whether the failure is recoverable. If possible, the product will attempt allocation on other volumes. The ACC frontend to the CATALOG SVC has many other capabilities:
- The ability to override many of the VSAM operands: Data set component names, OWNERID, EXPDT, CISIZE, ... etc.
- ACC has been designed to handle multivolume VSAM requests.
- The data and index components can be pooled to individual device pools: DATAPOOL or INDXPOOL. If an ACC rule specifies DISKPOOL, the product will select volumes for the data and index component from the same pool.
- If “SET VSAMSEP=YES” is specified in the controlling ACC rule definition, the data and index volumes will be separated in the selection process.
The rule definitions control VSAM files in the same manner as OS data sets. The following ACC statements could be used to control the allocation of production data sets:
VSAM and non-VSAM. ACC would try to allocate data sets starting with PROD to the production volume pool: PRDPOOL.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL VOLSER=(PROD*,PRDT01,PRDT03)
You may want to allocate a separate pool for VSAM files. The following ACC rule uses the data set organization in the selection process. The SPECIFIC(FLOAT) parameter on the pool definition forces ACC to remove the volume request, even when the volume specified conforms to the pool definition.
DEFRULE PRDVSAM IF &HLQ = PROD
&DSORG = VS
THEN SET DISKPOOL=PRDVSAM
DEFPOOL PRDVSAM SPECIFIC(FLOAT) VOLSER=(PRDVS*)
The SPECIFIC(CHECKPOOL) operand can be used to ensure that volumes specified in the IDCAMS control cards are found in the related pool definition. If multiple volumes are specified on the control cards, each volume is validated - only invalid volume requests are removed. If volumes are removed, ACCVSAM will add enough volumes from the pool definition to allocate the number of volumes originally requested.
DFSMS controlled allocations still use the SMS storage groups to build the initial eligible device list for the allocation request. In most cases, the ACC device pools can then be applied to volume lists produced by the storage group. For more information, examine“Volume Selection for DFSMS Data Sets” on page 8-7.
The rules in the DEFINE_GDG and ALTER_GDG environments can be used to set defaults for the creation of generation data groups and to enforce standards on changes that can be made to GDG definitions.
The rules in the IDCAMS_DELETE environment can be used to establish policies for IDCAMS deletion of VSAM and non-VSAM datasets, such as whether parameters like PURGE, ERASE, or ALIAS are allowed or required.