|
>All, > >We have a file (approx 46 million records). We are going to archive and >delete approx. half of these. The file is just over 7 gig in size and is >REUSEDLT *No. > >How much space are we likely to gain by deleting the records but not >reorganising the file? >How long is reorganising the file likely to take? >AS/400 is a 9406 530 at V4R3 with 160 gig of disk and 2 gig of memory. >Thanks in advance for any answers, Martin a previous thread (last week or so) was on a similar topic. However, to answer your questions: You will gain zero space from deleting records. If REUSEDLT(*YES), new records will be slotted into any deleted record spaces. Trying to estimate the time required has no simple answer. The previous thread did suggest that it can be faster to copy the file than use RGZPFM. They had (I believe) a larger file than yours & gave up after 3 days of RGZPFM. The CPYF *only* took 7 hours. Alternatively, I have previously suggested using the IBM supplied (but not tested - use at your own risk) command RCLSPACE. This command is availbale at V4* (I believe) in the QUSRTOOL library & must be compiled (u must have C compiler). See member TGPARCSI in file QATTINFO in this library. It basically allows a shuffle of active/deleted records to opposite ends of the file while the file is in use. Another parameter can be specified to 'chop off' the deleted records part of the file but this does need exclusive access to the file in question. Mike +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.