Converting databases online
You can convert full-function databases online by using the CONVERT command in batch mode.
About this task
New data set allocations use the same System Managed Storage (SMS) constructs or the same volume serial when running outside of SMS.
Databases can remain online while using this method.
When the IMS management of ACBs is enabled:
- New database definitions must exist in the IMS catalog staging data sets before running the IMS HALDB Toolkit job.
- The shadow database is unloaded by using the active database definition obtained from the IMS catalog directory data sets, then reloaded by using the pending database definition obtained from the IMS catalog staging data sets.
Restriction: Databases with logical relationships (except for indexes) are not
supported.
Procedure
Example
The following example shows the sample JCL for online conversion:
//JOBNAME JOB NAME,000,CLASS=A,MSGCLASS=X
//********************************************************************
//* SAMPLE JCL FOR CONVERT ONLINE(Y) - "online" batch mode
//*
//* Your databases must be registered to DBRC
//* You must have Online Reorganization Facility installed
//********************************************************************
//S2 EXEC PGM=IHCHALDB,DYNAMNBR=999,
// REGION=80M
//STEPLIB DD DISP=SHR,DSN=your.SIHCLOAD <=== your hcma loadlib
// DD DISP=SHR,DSN=your.SHRFLOAD <=== online reorg loadlib
// DD DISP=SHR,DSN=your.SDFSRESL <=== ims reslib
// DD DISP=SHR,DSN=your.SHPSLMD0 <=== ims tools loadlib
//DFSRESLB DD DISP=SHR,DSN=your.SDFSRESL <=== ims reslib
//MACLIB DD DISP=SHR,DSN=your.SDFSMAC <=== ims maclib
//IMS DD DISP=SHR,DSN=your.dbdlib <=== ims dbdlib
//IMSACB DD DISP=SHR,DSN=your.acblib <=== ims acblib
//PSBLIB DD DISP=SHR,DSN=your.psblib <=== ims psblib
//IMSDALIB DD DISP=SHR,DSN=your.mdalib <=== ims mdalib
//SYSPRINT DD SYSOUT=*
//MSGPRINT DD SYSOUT=*
//DBDPRINT DD SYSOUT=*
//LNKPRINT DD SYSOUT=*
//AMSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//IHCLIST DD SYSOUT=*
//IEFRDER DD DISP=SHR,DSN=your.hrf.iefrder <=== online-reorg log
//IHCSYSIN DD *
CONVERT ONLINE(Y) -
DBDPATT(*****...) DSNPREF(DBSMS.DB) -
DBD(xxxx) -
PARTNUM(2) -
ICMID(3) -
ICHLQ(DBSMS.DB.IC) -
ICTRLR(2) -
IC.COMP(Y) -
IC.COMPRTN(FABJCMP2) -
PTRCHECK(Y)