unless you are using a LF directly in a RPG/Cobol program.
And even then you can create an index, because a SQL index can be used in
composition with native I/O like any keyed logical file!
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
dfreinkel@xxxxxxxxxxxxxxxxx
Sent: Montag, 31. Januar 2022 17:09
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: SQL Index builds
Why do you want to create logical files to replace system advised indexes?
The system will always determine if it has the LF's it can use and if not,
it will recreate temporary indexes, even if you create the LF. This is
because the OS may be creating a different type of index that is quicker for
the system to use. You will see these indexes in the index advisors in both
ACS and the older access client.
My suggestion is to not create what you think you need unless you are using
a LF directly in a RPG/Cobol program. The index advisor will show you what
it needs and it allows you to create the indexes from within the index
advisor.
Darryl Freinkel
A4G
Telephone: 770.321.8562 Mobile: 678.355.8562
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.