Substitute the following values on the above JCL to meet your requirements:
page_dataset_name– Name of the Page Dataset you want to create
number_cyls – Specify the number of cylinders the new Page Dataset should have
volume_name – Name of the DASD volume where you want the Page dataset to be allocated
Bear in mind that the VOLUME parameter is only required if the Page Dataset you’re allocating is not SMS managed.
There are other parameters that can be used when allocating a new Page Dataset. To know more about this you can either check IBM manual ‘DFSMS Access Method Services for Catalogs (SC26-7394-xx) or via TSO command HELP DEFPGSPC.
With the above JCL data from DASD volume volser1 is copied to DASD volume volser2.
ALLDATA(*) indicates that all allocated space in sequential or partitioned datasets, and in datasets with a dataset organization that is null, is to be copied.
COPYVOLID allows the volume serial number of the source volume (volser1) to be copied to the target volume (OUTVOL1). The result is that both volumes will have the same serial number.
ALLEXCP copies datasets even if they are empty.
CANCELERROR terminates the copy operation if a permanent read error occurs.
ADMINISTRATOR allows you to act as a DFSMSdss authorized storage administrator for the COPY command. This is an optional parameter.
PURGE specifies that unexpired data sets, which reside on the target volume, can be overlaid for a full copy operation. If you do not specify PURGE and unexpired data sets exist on the target volume, the copy operation fails. This is an optional parameter.
VVDS stands for VSAM Volume Data Set and it’s a VSAM file that contains the information of all VSAM and SMS-managed non-VSAM data sets that reside on the volume where the VVDS file is allocated.
A VVDS is recognised by the restricted data set name SYS1.VVDS.Vvolser, where volser is the volume serial number of the volume on which the VVDS resides.
The VSAM Volume Control Record (VVCR) is the first logical record in a VVDS. The VVCR contains information for management of DASD space and the Base Catalog Structure (BCS) names, which currently have VSAM or SMS-managed non-VSAM data sets on the volume. The VVCR might have a pointer to an overflow VVCR.
The VVDS self-describing VVR (VSAM Volume Record) is the second logical record in the VVDS. The self-describing VVR has the information that describes the VVDS.
VVR or NVR
The remaining logical records in the VVDS can either be VVRs (VSAM Volume Records) for VSAM objects or NVRs (Non-VSAM Volume Records) for SMS-managed non-VSAM data sets. The hexadecimal RBA (Relative Byte Address) of the record is used as its key or identifier.