×
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.
Hi, Chuck
One scenario those arose recently at one of my accounts was the desire to do keyed IO from RPG (using common data management interfaces) to a view containing a UDF.
Bruce Vining
CRPence <CRPbottle@xxxxxxxxx> wrote:
Doug Palme wrote:
Is there any way to create an index over a view?
No. What scenario gives rise to that inquiry? Nothing apparent,
with regard to RPG. With more information about the scenario, a better
response may be forthcoming, directed at solving the problem instead of
merely a yes|nor answer to the question.
What about creating an SQL INDEX instead of a VIEW. Perhaps the
following satisfies whatever gave rise to that question?
The DB2 for i [with IBM i 6.1] offers some new function with its SQL
CREATE INDEX statement. That new function enables an SQL INDEX to be
created both with mapping [expressions represented as columns] and
selection [a WHERE clause], very similar to what a DDS LF derived
[keyed] [select/omit] index might provide. For lack of a column list,
the SQL INDEX can not always\easily be made to match, to replace, an
existing DDS LF, but the RCDFMT clause is enabled. Refer to the
enhanced SQL CREATE INDEX syntax:
http://publib.boulder.ibm.com/infocenter/systems/topic/db2/rbafzxcindx.htm
See also:
"Derived key index"
http://publib.boulder.ibm.com/infocenter/systems/topic/rzajq/rzajqderivedindex.htm
"Using derived indexes"
http://publib.boulder.ibm.com/infocenter/systems/topic/rzajq/rzajqusederived.htm
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.