We are trying to reallocate Datacom database files on a system that doesn’t have SMS storage.
We would like to add additional multiple disk pack volumes to database file areas to be used by dynamic extend.
Release : 15.1
For non-SMS datasets, to make more volumes available for dynamic extends there is no need to reallocate the files.
More volumes can be added by uncataloging the data set and re-cataloging it with additional volumes which will then be available for use by dynamic extends.
Perform the following procedure:
Close the DBID in CICS using command:DBOC CLOSE=nnn
Run DBUTLTY with the following 2 commands to close the dbid in Datacom:ACCESS STATUS=OFF,DBID=nnn,USERS=FAIL
COMM OPTION=CLOSE,DBID=nnn
If the ACCESS command fails, it will tell you what job has the DBID open. Terminate he job and run the ACCESS again.
LISTC ENT('dataset_name') VOL
//*
//* UNCATALOG DATASET
//*
//UNCAT EXEC PGM=IEFBR14
//SYSUT2 DD DSN=database.file,DISP=(OLD,UNCATLG)
//*
//* RECATALOG WITH ADDITONAL VOLUMES
//*
//RECAT EXEC PGM=IEFBR14
//SYSUT2 DD DSN=database.file,
// VOL=SER=(oldvolser1,oldvolser2,oldvolser3,newvolser1,newvolser2),
// DISP=(OLD,CATLG),UNIT=3390
Verify the volumes are correct by checking in ISPF option 3.4 or using the IDCAMS LISTCAT command.
ACCESS STATUS=WRITE,DBID=nnn
After adding more volumes, if a DBUTLTY INIT is run it will default to allocating extents across all volumes. You can control this by adding the VOLUMES parameter to the INIT.
To INIT the file and only use the first volume: INIT AREA=aaa,DBID=nnn,VOLUMES=1
See the Datacom documentation sections Creating and Maintaining Data Areas, EXTEND, Multivolume INITs in INIT Data Area and INIT IXX.
For SMS managed files see article 33629 - Adding volumes to SMS-managed database files in Datacom.
An alternative to adding additional volumes is to allocate a larger file and perform an Online Area Move (OAM), see article Using the Online Area Move (OAM) process.