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



Well not sure that I'd call OPNQRYF a front end to "DB2 SQL"

It's a query interface sure, but I don't believe it's related to SQL.

What's more important is that OPNQRYF uses the "Classic Query Engine
(CQE)" whereas SQL based queries use the "SQL Query Engine (SQE)" when
possible.

The SQE as lots of advantages over the CQE and the SQE is where IBM is
focusing their enhancement efforts. The CQE is stabilized.

For this reason, I'd use embedded SQL instead of OPNQRYF.

Charles

On Wed, Jan 19, 2011 at 2:11 PM, Gary Thompson <GThompson@xxxxxxxxxxx> wrote:
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.




--
This is the RPG programming on the IBM i / System i (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.

--
This is the RPG programming on the IBM i / System i (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.


--
This is the RPG programming on the IBM i / System i (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 ...

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.