The CONVERTDB function converts databases used in previous 2.2 releases from an ICF-Catalog format to a direct access file format. A BACKUP copy of the ICF-Catalog format is used as input (INDD) to the convertdb function and another backup copy is cre- ated (OUTDD) for use as input to the RESTORE function under the new release. If diag- nostic messages are desired, the DEBUG parameter can be specified. For detail messages about the conversion, specify the DETAIL parameter. If a MODEL account existed in the previous database format, and it will be used in the new format, then specify the COPY- MODEL parameter.
CONVERTDB INDD( ddname )
OUTDD( ddname )
DEBUG
DETAIL
COPYMODEL
INDD ( ddname )
Function: This is a required parameter. The INDD parameter specifies the name of a DD statement that specifies the backup version of the ICF-Catalog used as the DLimit database in a previous 2.2 release. Refer to the BACKUP statement for details on creating the input file.
Default: None
Format: INDD( ddname )
OUTDD ( ddname )
Function: This is a required parameter. The OUTDD parameter specifies the name of a DD statement which will be the target of the conversion. This DD statement must refer to a sequential dataset on DASD or tape. The dataset must be of sufficient size to hold all of the converted data.
Default: None
Format: OUTDD( ddname )
DEBUG
Function: This is an optional parameter. The DEBUG parameter indicates that diagnostic information is to be written to the SYSPRINT dataset.
Default: None
Format: DEBUG
DETAIL
Function: This is an optional parameter. The DETAIL parameter indicates that detailed messages pertaining to the conversion are to be written to the SYSPRINT dataset.
Default: None
Format: DETAIL
COPYMODEL
Function: This is an optional parameter. The COPYMODEL parameter specifies whether a MODEL account existing in the previous version will be copied to the new database.
Default: None
Format: COPYMODEL
Example The following example shows the use of the CONVERTDB statement to convert database formats.
//DLMAINT EXEC PGM=DLMAINT,REGION=4M
//STEPLIB DD DISP=SHR,DSN=DTS.R71.LOADLIB
//OLDDS DD DSN=DTS.R71.DLSDB.BACKUP,DISP=SHR
//NEWDS DD DSN=DTS.R71.DLSDB.BACKUP,
// SPACE=(CYL,(50,5),RLSE),DISP=(,CATLG,DELETE)
//SYSPRINT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSIN DD *
CONVERTDB INDD(OLDDS) OUTDD(NEWDS) DETAIL COPYMODEL