I had a couple of databases that I wanted to decrease. What I did was create a new database from scratch, with adafrm and adadef, do an adasav on the old database, and use adasav to restore to the new database. Run an adarep first on the old database and use it to create the adadef job.
If memory serves me, in the “adasav restore” I had to list each file with “adasav restore fmove=nnn”, because when I just did “adasav restore”, the adarep showed the database size as being the old database, not the new one. I guess the “adasav restore” copies the general control block as well as the files.
After doing this, just rename the data, assoc, and work, and try it. You can rename things back if there’s a problem. I thought it was a pretty safe way to go. In my adasav I use drives=4 and bufno=12, it made it complete in about 10% of the time (clock time) that it took without these parameters. Using these parms made the CPU% go quite high, but it was during off hours.
I had a couple of databases that I wanted to decrease. What I did was create a new database from scratch, with adafrm and adadef, do an adasav on the old database, and use adasav to restore to the new database. Run an adarep first on the old database and use it to create the adadef job.
If memory serves me, in the “adasav restore” I had to list each file with “adasav restore fmove=nnn”, because when I just did “adasav restore”, the adarep showed the database size as being the old database, not the new one. I guess the “adasav restore” copies the general control block as well as the files.
After doing this, just rename the data, assoc, and work, and try it. You can rename things back if there’s a problem. I thought it was a pretty safe way to go. In my adasav I use drives=4 and bufno=12, it made it complete in about 10% of the time (clock time) that it took without these parameters. Using these parms made the CPU% go quite high, but it was during off hours.