FDRCONVT Examples
All examples in this section are found in the JCL library installed with FDR. The member names are EX7035x.
Prepare a volume for later conversion to SMS management example
Prepare a volume for later conversion to SMS management by using FDRCONVT to place the volume in INITIAL status. Once the volume is in INITIAL status, no new allocations can take place on the volume, and existing data sets on the volume cannot be extended to new volumes. No processing of data sets is done by FDRCONVT when converting volumes to INITIAL status.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
CONVERTV VOL=PACK01,STATUS=INITIAL
/*
Simulate conversion of several volumes to SMS management example
Simulate conversion of all of the data sets on several volumes to SMS management. No changes are made to the volumes or the data sets. The output can be used to identify data sets that are ineligible for conversion. The VTOC and data sets are not to be enqueued.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
SIM VOL=(PROD*,TEST*),STATUS=SMS,ENQ=OFF,DSNENQ=NONE
/*
Convert a volume to SMS management example
Convert a volume containing uncataloged data sets and data sets cataloged outside the standard order of search to SMS management. The uncataloged data sets are to be cataloged. The data sets cataloged outside the standard order of search (that is, data sets that previously required STEPCAT statements) are to be recataloged in the standard order of search.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
CONVERTV VOL=DBPAK1,STATUS=SMS,
INCAT=(USER.CATALOG.ONE,
USER.CATALOG.TWO)
/*
Convert multi-volume data sets to SMS management example
Convert volumes containing multi-volume data sets to SMS management. The “MULTIVOL=YES” parameter indicates that volumes which are not specified in the “VOL=” parameter can be dynamically allocated. The first extent of each non-VSAM data set and the first extent of each VSAM data or index component, or alternate index data or index component must be on a volume specified in the “VOL=” parameter.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
CONVERTV VOL=(DBPAK1,DBPAK2),STATUS=SMS,MULTIVOL=YES
/*
Verify that SMS classes assigned to data sets are correct example
Simulate conversion of a volume that is already SMS-managed. The REDETERMINE=YES parameter is used to identify those data sets that need to have their SMS class information reset because the ACS routines return classes different from those already assigned. REDETERMINE=YES may be useful when the ACS routines have been changed, causing new classes to be assigned. If any data sets need to have their class information reset, the SIMULATE command can be changed to CONVERTV to perform the conversion.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
SIMULATE VOL=SMS301,STATUS=SMS,REDETERMINE=YES
/*
Convert volumes out of SMS management example
All volumes beginning with “TSO” are to be converted to NONSMS status. Multi-volume data sets can be converted if they reside on volumes specified in the VOL= parameter. Volumes containing EF (extended format) data sets cannot be converted from SMS management.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
CONVERTV VOL=TSO*,STATUS=NONSMS
/*
Assign storage and management classes to selected data sets example
Convert data sets with high-level qualifiers beginning with “TEST” or “PROD” to SMS-managed. All other data sets on the volume are ineligible for conversion. Data sets beginning with “TEST” are to get a storage class of “BASE” and a management class of “MONTHMIG”. Data sets beginning with “PROD” are to get a management class of “DBMIG”.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
CONVERTV VOL=(WRKA*,WRKB*),STATUS=SMS
SELECT DSG=TEST,STORCLAS=BASE,
MGMTCLAS=MONTHMIG
SELECT DSG=PROD,MGMTCLAS=DBMIG
/*