Vern,
Have you had a look at SYSFILES and/or SYSCOLUMNS2 deliver what you need
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
Modernization ? Education ? Consulting on IBM i
IBM Champion since 2020
"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)
"Learning is experience ? everything else is only information!" (Albert
Einstein)
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of VERNON
HAMBERG Owner via MIDRANGE-L
Sent: Monday, 31 July 2023 18:18
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: VERNON HAMBERG Owner <vhamberg@xxxxxxxxxxxxxxx>;
midrange-l@xxxxxxxxxxxxxxxxxx; denglander@xxxxxxxxxxxxxxx
Subject: Re: Index research question
Hi Doug
I looked at the DSPFD for SYSINDEXES - it's a view, of course, based on a
couple database cross-reference tables - QADBXREF and QADBFDEP (file
dependencies). I don't have authority to even view those tables, but I can
see things through the view. The view has a WHERE clause that pulls in only
'IX' file types - not 'LF'
SYSINDEXSTAT is a view over SYSINDEXES and a table function, I think - you
can do a DSPFD on SYSIXSTAT to see.
Cheers
Vern
On Mon, 31 Jul, 2023 at 9:29 AM, DEnglander--- via MIDRANGE-L
<midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: DEnglander@xxxxxxxxxxxxxxx
Is there something similar to SYSINDEXES or SYSINDEXSTAT that includes DDS
Defined Indexes? It look like these two only include DDL defined indexes.
I am trying to find unused indexes by the DB2 Optimizer to see if they can
be deleted, regardless of whether they were created via DDS or DDL.
Thank you,
Doug
"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments
accompanying it) contain confidential information belonging to the sender.
The information is intended only for the use of the intended recipient. If
you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance on
the contents of the information is strictly prohibited. Any unauthorized
interception of this transmission is illegal under the law. If you have
received this transmission in error, please promptly notify the sender by
reply e-mail, and then destroy all copies of the transmission."
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:
MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email:
MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@lists.midran
ge.com>
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact
support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any
subscription related questions.
.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.