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



Keyed views, no.

However, there are two ways to create indexes:

1) Containing all columns...
create index myidx on mytbl (keyfld) rcdfmt myfmt

2) Containing selected columns:
create index myidx on mytbl (keyfld)
rcdfmt myfmt ADD COL1, COL2, COL3


Option 2 comes pretty close, especially with the WHERE clause added as
Rob's post mention. Possibly a usable replacement for an explicit format
DDS logical for RPG RLA. Using it, you can add columns to MYTBL without
having to recompile your RPG.

Note however, that unlike DDS logicals, the key field is always the first
field. Followed by any ADDed columns.

So while you may not be able to replace your explicit format DDS logical
with such an index without a recompile. At least you'd only have to
recompile once.

Charles




On Fri, Apr 29, 2016 at 10:41 AM, Jeff Young <jyoung0950@xxxxxxxxx> wrote:

V7R2
I seem to recall discussions in the past regarding creating a keyed view,
but can not find anything in the SQL reference manual regarding it.

Can this be done?
If so, any references would be appreciated.


Jeff Young
Sr. Programmer Analyst
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


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.