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



Sudha

Do the 2 files have the same format, same field names? Just different sets
of data? Then you can build a single-format logical (which SQL can handle)
and specify the 2 files as the based-on files of the CRTLF command.

IIRC, a problem with views, performance-wise, is that the view LF really
stores only the SELECT statement and maybe an access plan, not the actual
access path. So the SELECT is run every time you access the view. This may
be why RPG can't use it, since native IO doesn't know how to run SQL
statements.

HTH

Vern

At 11:48 AM 11/6/2002 -0600, you wrote:
I am trying to fine tune a performance issue I have in my project where I
am using a 'Union' over 2 large files.  This returns me a distinct result
of selected fields from both the files, which is wonderful.  But the time
taken is quite significant since each call creates a union. I cannot
create a view on Union, so I am trying to find an easier way to do this
like say via maybe a LF.  Is this possible?  Else, creating 2 separate
indexes/views on the 2 files on the selected fields will help?

TIA,
Sudha

Sudha Ramanujan
SunGard Futures Systems
sramanujan@sungardfutures.com
(312)577-6179



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.