Another cheap native option is to use STRQMQRY - CRTQMQRY with the statement
SELECT * FROM FILE
and then execute STRQMQRY OUTPUT(*OUTFILE) OUTFILE(same-file) OUTMBR(*FIRST *REPLACE)


USE WITH CAUTION

This replaces the original contents with the results of the SELECT statement, in place. I've not looked into the locking implications, but it probably still needs to run off-hours.

This is a powerful and frightening technique - any result set that matches the columns of the original table will replace the contents, in place, with no warning that it is doing so.

At 05:09 AM 4/28/2004, you wrote:
-snip-
Or a cheap alternative would be to CPYF filename to copy COMPRESS(*YES)
Compress out deleted records.
CLRPFM the file, then CPYF copy to filename.

Fiona Fitzgerald



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.