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



In making a final copy as TABLE, as a subset of data from a database file, there would be little reason to move any data anywhere besides directly from the source table to the target table. No FETCH means no array. Just choose an SQL statement that does it all, and avoid any cursor and the additional coding for array & movement of data.

Regards, Chuck

Alan Campin wrote:
I just had to deal with the same situation. CPYF is way slow. I
wrote embedded SQL. Only recommendation would be to map a user
space into an array and write 32766 records at a shot or what
will fit in the user space or use teraspace to allocate the
array. Will be too slow otherwise.

On Thu, May 7, 2009 at 12:52 PM, sjl wrote:


Thanks for the suggestions. The file is the JDE General Ledger
detail (F0911).

How about this solution:

There is not currently a logical file containg the fields
necessary for optimizing the SQL if used, so I'm going to
recommend that we

1) Build either a new logical file or create a SQL index, and 2) Replace the CPYF with an RPGIV program with embedded SQL to
perform the copy, passing the variable values via JDE's Dream
Writer processing options.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.