Because of the holidays, we're needing to do some maintenance on our AS400 in a much smaller window then we are used to, Normally, we can set aside close to a 24 hour window on a Sunday when we need to do any maintenance that requires taking our AS400 offline, but, this evening, we're limited to about a 6 hour window. Our service provider has warned us to expect up to a 3 hour window for the work that we're having done, but we also need to do a full system save before taking the system offline, which could add another 3 hours to the process. To prepare for the work tonight, I'm doing some last min clean up of our system, and deleting a lot of records out of our test, and dev systems, as well as cleaning up some redundant/unneeded records in our live environment.
My question is, as far as speeding up the save, will simply deleting the records speed things up, or will I also need to run a reorg to compact the files? I think that the save will only save active records, and will trim out all of the deleted records, but, I didn't want to make an assumption that could cost us a half hour of our 6 hour window.
thanks,
Kevin
Software/Hardware used:
ASKED:
December 21, 2006 12:40 PM
UPDATED:
December 27, 2009 10:51 PM
thanks for the reply, We do a full sys save every 3 weeks, and nightly changed objects, but, any time we open the box up to replace hardware, we like to have a fresh save from right before. Normally we do the job over the weekend, and I have a lot more time to work with, so the full save isn’t a problem, but today, it is :/ I went ahead and did reorgs as a just in case, I normally do anything with more then 1% up to about .5M records, and about 10% for larger files when I do reorgs, and I run those on about a monthly bases (some files more often), so, the only place I had to speed things up was by nuking several gig of test/dev data off the drives. hopefully I bought myself 30 min or so.
thanks again.
You could also consider doing a save of the test libraries using the *FREE ahead of time. Since those libraries probably are not being used all of the time. The *FREE option leaves the objects on the system but clears the data. This is good becuase it keeps the private authorities but free up space. Then after the maintaince restore the libraries.
The only other thing I can thing of is write your own program to do the full save.
It is really only four save commands with a restricted state to start and resart at the end:
ENDSBS *ALL *IMMED
SAVSYS
SAVLIB *NONSYS
SAVDLO
SAV
At the end you can do either STRSBS QCTL which is what IBM does or do a PWRDWNSYS *IMMED RESTART(*YES) which would be better.
But the save time part is on the SAVLIB *NONSYS, you can omit up to 300 libraries on the command. You could omit all of your Test libraries and save them separately when you have time.
You could also consider doing a save of the test libraries using the *FREE ahead of time. Since those libraries probably are not being used all of the time. The *FREE option leaves the objects on the system but clears the data. This is good becuase it keeps the private authorities but free up space. Then after the maintaince restore the libraries.
The only other thing I can thing of is write your own program to do the full save.
It is really only four save commands with a restricted state to start and resart at the end:
ENDSBS *ALL *IMMED
SAVSYS
SAVLIB *NONSYS
SAVDLO
SAV
At the end you can do either STRSBS QCTL which is what IBM does or do a PWRDWNSYS *IMMED RESTART(*YES) which would be better.
But the save time part is on the SAVLIB *NONSYS, you can omit up to 300 libraries on the command. You could omit all of your Test libraries and save them separately when you have time.