MIDRANGE dot COM Mailing List Archive


Re: take 2: how to sort a file in place

fixed


On 2013-01-23, at 2:26 PM, midrange-l-request@xxxxxxxxxxxx wrote:

Can this be done in one SQL statement with the result placed back in WORKFILE1?

Or should I create a new table QTEMP/WORKFILE2 using DISTINCT or GROUP BY, and then CPYF back to WORKFILE1.

Another option being to create a new file delete the old one and either move or rename the new one to the old name. Neither move or rename would actually move the data so both should be more efficient than copying the new on back again.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact