In a message dated 1/29/01 5:41:06 PM Eastern Standard Time,
So I looked at it, and it happens to be a RPGSQL function, and it does a lot
of interactive indexing. So my questions is this. Can I created a logical
file similar to this SQL, and index it the same. So when this sql is
activated it would be smart enough to use an already created index instead
of creating one from scratch on the fly? And if so, is there anything
special I need to do to attach the logical to the job?
You _CAN_ create a logical similar to the SQL statement in question and it
_MAY_ improve performance. You actually have two better options, though:
First, run the program under STRDBG. Debug throws many entries into the
joblog that provide additional information about access path creation. View
the messages with F1 to provide full information.
Second, use the STRDBMON command against a job running the program to an
outfile with *DETAIL. Then query the outfile looking for anything with the
"Index advised" (QQIDXA?) flag set to "Y" and create those indexes. You may
need to do a "follow up" DBMON if performance is still slow, as the optimizer
isn't always accurate and creating advised indexes sometimes points out the
_REAL_ index you need.
Enterprise Systems Consulting, Inc.
Fuquay-Varina, NC USA
Error Message -- "Enter any 11 digit prime number to continue." -- Anonymous
This mailing list archive is Copyright 1997-2019 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