Release: Any supported release.
Component: IDMS/DB
(Note: it is a good practice to permanently maintain this second DMCL “RELDDMCL”. At normal times, it will be exactly the same as your real DMCL. When you are conducting an UNLOAD/RELOAD, it describes the physical definition of the new database area(s).)
//IDMSBCF EXEC PGM=IDMSBCF,REGION=0M
//STEPLIB DD DSN=your.DBA.LOADLIB,DISP=SHR
// DD DSN=your.CUSTOM.LOADLIB,DISP=SHR
// DD DSN=your.idms.CAGJLOAD,DISP=SHR
//SYSLST DD SYSOUT=*
//SYSPCH DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//J1JRNL DD DUMMY
//J2JRNL DD DUMMY
//J3JRNL DD DUMMY
//SYSJRNL DD DUMMY
//** include datasets for your newly defined database files, for example:
//ddname1 DD DSN=your.database.file1.NEW,DISP=SHR
//ddname2 DD DSN=your.database.file2.NEW,DISP=SHR
...
//ddnameN DD DSN=your.database.fileN.NEW,DISP=SHR
//SYSIDMS DD *
DMCL=RELDDMCL
LOCAL=ON
ECHO=ON
//SYSIPT DD *
CONNECT TO SYSTEM;
FORMAT FILE segment-name.file1;
FORMAT FILE segment-name.file2;
FORMAT FILE segment-name.fileN;
/*
//UNLOAD EXEC PGM=IDMSBCF,REGION=0M
//STEPLIB DD DSN=your.DBA.LOADLIB,DISP=SHR
// DD DSN=your.CUSTOM.LOADLIB,DISP=SHR
// DD DSN=your.idms.CAGJLOAD,DISP=SHR
//SYSPCH DD DSN=your.UNLD.SYSPCH,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,1),
// UNIT=SYSDA,
// DCB=(LRECL=80,BLKSIZE=80,RECFM=F,DSORG=PS)
//SYS002 DD DSN=your.UNLD.SYS002,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(1000,10)),
// UNIT=SYSDA,
// DCB=(BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS003 DD DSN=your.UNLD.SYS003,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(10,10)),
// UNIT=SYSDA,
// DCB=(BLKSIZE=4276,RECFM=VB,DSORG=PS)
//RELDCTL DD DSN=your.UNLDRELD.RELDCTL,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,1),
// UNIT=SYSDA,
// DCB=(LRECL=60,BLKSIZE=600,RECFM=FB,DSORG=PS)
//SYSLST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSJRNL DD DUMMY
//SYSIDMS DD *
DMCL=dmclname
/*
//SYSIPT DD *
CONNECT TO SYSTEM;
UNLOAD SEGMENT segment-name
USING subschema-name
AREA area-name-1,
area-name-2,
...
area-name-n
RELOAD INTO segment-name
USING subschema-name
DMCL RELDDMCL;
//RELOAD EXEC PGM=IDMSBCF,REGION=0M
//STEPLIB DD DSN=your.DBA.LOADLIB,DISP=SHR
// DD DSN=your.CUSTOM.LOADLIB,DISP=SHR
// DD DSN=your.idms.CAGJLOAD,DISP=SHR
//SYS001 DD DSN=your.UNLD.SYSPCH,DISP=SHR
//SYS002 DD DSN=your.UNLD.SYS002,DISP=SHR
//SYS003 DD DSN=your.UNLD.SYS003,DISP=SHR
//RELDCTL DD DSN=your.UNLDRELD.RELDCTL,DISP=SHR
//SYS004 DD DSN=your.RELD.SYS004,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS005 DD DSN=your.RELD.SYS005,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS006 DD DSN=your.RELD.SYS006,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS007 DD DSN=your.RELD.SYS007,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS008 DD DSN=your.RELD.SYS008,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS009 DD DSN=your.RELD.SYS009,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS010 DD DSN=your.RELD.SYS010,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYS011 DD DSN=your.RELD.SYS011,
// DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(700,10)),
// UNIT=SYSDA,
// DCB=(LRECL=4272,BLKSIZE=4276,RECFM=VB,DSORG=PS)
//SYSPCH DD DSN=&&SORTPCH,DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(TRK,(1,1)),
// DCB=(LRECL=80,BLKSIZE=80,RECFM=FB,DSORG=PS)
//** include datasets for your newly defined database files, for example:-
//ddname1 DD DSN=your.database.file1.NEW,DISP=SHR
//ddname2 DD DSN=your.database.file2.NEW,DISP=SHR
...
//ddnameN DD DSN=your.database.fileN.NEW,DISP=SHR
//SYSLST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SORTWK01 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW1,
// DISP=(NEW,PASS)
//SORTWK02 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW2,
// DISP=(NEW,PASS)
//SORTWK03 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW3,
// DISP=(NEW,PASS)
//SORTWK04 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW4,
// DISP=(NEW,PASS)
//SORTWK05 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW5,
// DISP=(NEW,PASS)
//SORTWK06 DD UNIT=SYSDA,SPACE=(TRK,(100)),DSN=&&SW6,
// DISP=(NEW,PASS)
//SYSUDUMP DD SYSOUT=*
//SYSJRNL DD DUMMY
//SYSIDMS DD *
DMCL=RELDDMCL
USERCAT=OFF
/*
//SYSIPT DD *
CONNECT TO SYSTEM;
RELOAD;
If you decide to use the shutdown method, go to step 23.
DCMT VARY AREA segment-name.area-name OFFLINE
DCMT VARY FILE segment-name.file-name CLOSE
DCMT VARY FILE segment-name.file-name DEALLOCATE
DCMT VARY FILE segment-name.file-name ALLOCATE
DCMT VARY FILE segment-name.file-name OPEN
DCMT VARY AREA segment-name.area-name ONLINE
You may choose to VARY the areas OFFLINE and re-run the IDMSDBAN and PRINT SPACE jobs to check for consistency with the results from steps 2 and 3.