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



Muralidhar,

There are all sorts of reasons to prefer SQL over native access, but performance is normally not one of them (unless you're doing mass updates or mass deletes). SQL was made to operate on sets, RPG was made to operate on records. Sequentially processing a file is what RPG was made for.

So the question is: why are you using SQL? My guess is that in your scenario a pure RPG solution will outperform the SQL solution.

Joep Beckeringh


Muralidhar Narayana wrote:
I have a program(of type SQLRPGLE) which reads IPXPMPX1 sequentially and for every record in IPXPMPX1, it goes to IPX.FTMS, IPXPCDF1(outputfile) and IPX.MAS for populating the different fields in the outfile.
The number of records in these files are as follows:
IPX.FTMS(3190 records)
IPXPMPX1(728,099 records)
IPX.MAS(445 records)
IPXPCDF1(105560 records)
The program due to more number of records , is taking more time around 2 hours.This program is not very fancy,0 normal read and write opcodes & with some bounded SQL statements.
I would like to check is there anyway I can increase the performance of the program and reduce the time it takes to run.
Thanks so much for your ideas.



-- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.




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.