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



I believe I've seen recommendations from IBM to create an index over a
system table in the past...

Another case of making assumptions...

If you need a particular order, you have to specify it.

Charles

On Thu, Nov 15, 2018 at 9:34 AM David Gibbs <david@xxxxxxxxxxxx> wrote:

On 11/15/2018 10:28 AM, Mark Waterbury wrote:
It depends in part on what you mean by "a system table." Do you mean
a 3rd party product added an SQL index or view (or even a traditional
DDS-based LF) over an IBM-supplied table that is part of, or shipped
with, the OS?

I'm talking about an access path built over a file in QSYS or QSYS2.

So, what's the real issue here? Can you explain what kind of
problem(s) this incident (support case) caused?

We had a program that was reading a system table in arrival sequence (no
sort order specified on the OPNQRYF) and were getting the data in
unexpected order.

After running the program in debug, we saw that an unexpected access path
was being selected, so we were getting the data in a specific order.

Granted, our program should have specified the sequence instead of relying
on it being in the correct order.

None the less, I'm wondering if it's common place for 3rd party products
(or even end users) to create access paths over system tables.

We were able to resolve the issue, but it was surprising that it was
encountered at all.

david

--
David Gibbs
midrange.com

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes
Association's Tour de Cure to raise money for diabetes research, education,
advocacy, and awareness. You can make a tax-deductible donation to my ride
by visiting https://lsteml.diabetessucks.net.

See where I get my donations from ... visit
https://lsteml.diabetessucks.net/map for an interactive map (it's a geeky
thing).

I may have diabetes, but diabetes doesn't have me!
--
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: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx 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.

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.