What are the required steps to set up Datacom OLREORG (Online Reorg) with REFGROUP=0 in order to perform a reorganization of the Disk Backup and Restore tables?
Release : 15.0/15.1
Component : CA Datacom/AD
OLREORG with REFGROUP=0 requires DSOP attribute set to 4 or 5. Disk Backup and Restore PTF RO90201 changes the DSOP value from 1 to 4 (RANDOM FOR OLREORG).
Moreover, as this utility makes use of empty blocks, it is necessary that there is enough free space on the area. Usually 30% is enough, but it depends on how badly organized the tables are
The required steps are the following:
//SYSIN DD *
CXXMAINT OPTION=ALTER,AREA=DMS,DBID=nnn,DSOP=4
/*
//SYSIN DD *or a DBUTLTY DATASCAN OPTION=REBUILD_SPACE_INDEX (DATACOM/AD 15.1):
RETIX AREA=DMS,DBID=nnn,KEYNAME=*DATA
/*
//SYSIN DD *
DATASCAN AREA=DMS,DBID=nnn,OPTION=REBUILD_SPACE_INDEX
/*
//SYSIN DD *
ACCESS STATUS=OFF,DBID=nnn,USERS=WAIT
COMM OPTION=CLOSE,DBID=nnn
ACCESS STATUS=WRITE,DBID=nnn
/*
At this point, the Disk area is ready for the DBUTLTY OLREORG with REFGROUP=0; run the utility on one table at a time:
//SYSIN DD *
OLREORG TABLE=ttt,DBID=nnn,REFGROUP=0
/*
Important notes: