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



--
[ Picked text/plain from multipart/alternative ]
Rob

Lest this become another limitation vs. feature discussion, I'll plow on
ahead  ;-)

A view cannot be read in RPG because it does not have an access path in it
- only an SQL statement that has to be executed whenever you access it.
Native IO cannot execute an SQL statement, it uses an ODP that is based on
an access path, which is maintained in realtime.

Here's an example, based on a TPC-H benchmark file called LINEITEM. I
create both a view that selects all fields in records with order number >
2,500,000.

The view:
CREATE VIEW TPCH/L_VW AS SELECT * FROM tpch/lineitem WHERE
l_orderkey > 2500000

Size is 32,768 bytes
It is usable right away
Block size c.91,000 records (the increment you see at the bottom
interactive SQL)
19 seconds to see first record in interactive SQL

The S/O logical:
      A          R LINEITEM                  PFILE(TPCH/LINEITEM)
      A          K *NONE
      A          S L_ORDERKEY                COMP(GT 2500000)
      A          O                           ALL

Size is 56,725,504 bytes
It took a long time to build
Block size 20,000 records
53 seconds to see first record in interactive SQL -- VERRRY interesting!

Haven't tried the logical in RPG - I assume it'd get the first selected
faster, but I'm not sure.

Regards

Vern

At 04:00 PM 11/6/2002 -0500, you wrote:
>Hope the new view is working for you.  I still can't get to open as a lf
>with traditional RPG.
>
>Either you can do more research on RNX1011.  Or realize the limitations of
>traditional RPG and accept SQL.
>
>Rob Berendt
>--
--




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.