Hi All,
Most likely obvious, but I recently removed millions of records from some UNIDATA files, and I want to reclaim the disk space. In days of old, I would make a new version of the file that is empty, then copy the records into it -- then replace the old file with the new one.
Is there a better way to do this now? I have a vauge memory of doing the copy from the ECL prompt, but I may have used Unibasic. I have a few files over 50GB that it would be nice to get the space back.
In reviewing the manuels, (HORRERS) it seems that REBUILD.FILE would basically do that. But I see no example of syntax.
:FILE.STAT HISTORYFILE
File name (Dynamic File) = HISTORYFILE
Number of groups in file (modulo) = 36534
Dynamic hashing, hash type = 0
Split/Merge type = KEYONLY
Block size = 16384
File has 35382 groups in level one overflow.
Number of records = 1824235
Total number of bytes = 98510763222
Fileload = 6519857129
Fileload percentage = 1091
Average number of records per group = 49.9
Standard deviation from average = 73.2
Average number of bytes per group = 2696413.3
Standard deviation from average = 6264577.8
Average number of bytes in a record = 54001.1
Average number of bytes in record ID = 30.4
Standard deviation from average = 191154.4
Minimum number of bytes in a record = 57
Maximum number of bytes in a record = 1481487
Minimum number of fields in a record = 4
Enter <New line> to continue...
Maximum number of fields in a record = 5
Average number of fields per record = 4.0
Standard deviation from average = 0.0
File has 96 over files, 1 prime files
Part File Actual file size in bytes
dat001 598589440
over001 1073725440
Thankds in sdvance for any thoughts!
------------------------------
Rick Brown
Sysadmin
Juniata College
------------------------------