|
create any DDS logicals.IBM recommends that you create all indexes first as SQL indexes and then
Index and the performance is better.If the index already exists, the OS will just reuse the index of the SQL
If you delete the index later, the DDS will keep the SQL index
Yeah Jim, I believe so - you don't have a subset of the fields in anarrival
index, as you can with standard logical files. With a view, you'd have a
subset and no key - an unkeyed logical basically.
Vern
JDHorn@xxxxxxxxxxxxxx wrote:
I think this means that -when you specify an index the compiler getsthe
physical file definition for all the fields?F-spec -
Jim Horn
____________________________________________________
------------------------------
message: 7
date: Thu, 13 Aug 2009 14:00:21 -0500
from: Vern Hamberg <vhamberg@xxxxxxxxxxx>
subject: Re: defining files with sql but using setll/read to access
Just like any other PF or LF - for a table, put its name in an
if it has a primary key that you want to use, declare as keyed inthe
usual manner.
For an index, just put its name in the F-spec and declare it keyed.
I think you can even use a view, but it has to be treated as
filesequence. Right, you other SQL mavens?sql
All is the same as you know how to do!!
HTH
Vern
JDHorn@xxxxxxxxxxxxxx wrote:
> As time goes by, I am certainly seeing the advantage of using
to
> access files, especially for search and display.
>
> In an rpg program, what is a good way to use a sql defined
forlist
> setll/read access?--
>
> Jim Horn
>
This email is intended only for the person or entity
to which it is addressed and may contain information
that is privileged, confidential or otherwise protected
from disclosure. If you are not the named addressee
or an employee or agent responsible for delivering
this message to the named addressee, you are not
authorized to read, print, retain copy, and disseminate
this message or any part of it. If you have received this
message in error please notify us immediately by email,
discard any paper copies and delete all electronic files
of this message.
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
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 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.