× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



James H. H. Lampert wrote:
Chris Bipes wrote:
CRTDUPOBJ I believe will carry across triggers and other
restrictions that you may not want on the QTEMP version.
CRTDUPOBJ can be faster if there are many records in the
file. You can specify NBRRCDS
on the CPYF command as 1 to speed up the process.

The CRTDUPOBJ with DATA(*NO) would be faster given TRG(*NO) CST(*NO) to avoid the other noted concern. First it would not copy any data, and then there would be no CLRPFM to rid of the nuisance record that might have resulted from the CPYF.

Would if it accepted zero for NBRRCDS, given that the
preferred result would be a completely empty copy of the
file.

Zero records can be done by trickery, using FROMRCD(4294967288) TORCD(4294967288); i.e. specifying the maximum row number. Obviously this /assumes/ the file has never reached the absolute maximum. Similar tricks with keyed selection or data selection can be used with similar assumptions about the data.

I recall recommending NBRRCDS() support zero for that same reason, but internal suggestions had no weight. Only a customer submitted DCR would suggest merit for that capability. I probably should have made that change last time I fixed something in CPYF. :-)

Regards, Chuck

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-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.