The better way to do all this is to use Operations Navigator. Don't put any
indexes on a table unless they are used by other programs.
Go into your reporting tool and run your reports multiple times. When you
are finished, open up Ops Nav and go to the Database section and make sure
that the schema PROJ_MKWN1 is on your list.
Display the list of tables and find the DTAWHS table. When you do, right
click on the table name and select the index adviser will show a list of
indexes it thinks you need to add. You can also get a combined list. What
you are looking for are indexes that are being built by the OS again and
again. You can then click on an entry and ask the system to create the
The reason that you want to do this is that what you think is the index you
want may not be the index the system needs and it automatically generates
the scripts to create the indexes.
I don't know if this is all way beyond your knowledge level but you should
build indexes based on the system recommends rather than trying to guess.
On Fri, Jan 31, 2014 at 7:20 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
On 1/30/2014 11:40 PM, CRPence wrote:
On 30-Jan-2014 15:36 -0800, Hoteltravelfundotcom wrote:...and after you create the index, the query tool (Crystal Reports?)
On 30-Jan-2014 14:58 -0800, Hoteltravelfundotcom wrote:So... Ignoring the subject, what seems to be desired, is satisfied by
the source for the DTAWHS is this:I wanted to index the invoice number <<SNIP>> This new table has the
CREATE TABLE PROJ_MKWN1/DTAWHS (
INVOICE# CHAR (8 ),
invoice amount data which they wish to add to the report.
the following SQL statement that will create an INDEX to provide a keyed
Access Path over the data in the Invoice Number column.?:
CREATE INDEX PROJ_MKWN1/DTAWHSINV# ON PROJ_MKWN1/DTAWHS (INVOICE#)
will refer to the base table, DTAWHS, not to the index. The index is
for the use of the optimiser.
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,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact