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



Gary - I agree that embedded SQL would be better - unfortunately my company hasn't purchased the SQL development package so I left with OPNQRYF.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Wednesday, January 19, 2011 11:12 AM
To: RPG programming on the IBM i / System i
Subject: RE: Subfile initial load very slow

My 2 cents is to bypass OPNQRYF and use embedded SQL

I realize the fist time you do this you might hit a learning curve
problem, but you will find you
can get sample source to help, and the result will be much more
useful and
easier to maintain.

OPNQRYF is nothing more that a "front end" to DB2 SQL and adds what is now
an un-productive
and confusing jumble of key words that work only in system i.

DB2 SQL, on the other hand, conforms to international standards and will
open to you the world of
SQL, as in Oracle, Microsoft SQL Server, MySQL, MS Access, SyBase,
and others.

I suggest you go for it! - if not now, then soon.




Andy Devries <andyd@xxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/19/2011 12:00 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: Subfile initial load very slow






Thanks Nathan - I'm overwhelmed with the response. I've tried the
different SFLSIZ configurations suggested by several people with the same
results. It seems to be something other than how the subfile is set up
(others have made this same comment). I took the program and stripped all
the separate reads to other files (6 different ones) and reran the
program. The response time seems to improve to acceptable times. I will
probably rewrite the whole subroutine using OPNQRYF to see if I can access
the other files quicker. I will update the post once I have done this.
Thanks everyone!
Andy

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Nathan Andelin
Sent: Wednesday, January 19, 2011 8:24 AM
To: RPG programming on the IBM i / System i
Subject: Re: Subfile initial load very slow

Comment out the single line of code where the subfile write is evoked. If
it's
still slow, then you at least know that it has nothing to do with the
subfile.

-Nathan.





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.