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



Interestingly I'm unable to use the "CREATE OR REPLACE INDEX" on V7R3.
It doesn't appear that the "OR REPLACE" is valid for a CREATE INDEX.

Also, I'd like to point out that you can specify the system name directly on the create index statement.

CREATE INDEX DEVAGC549.MY_PERFORMANCE
FOR SYSTEM NAME PLPERM_I01
ON
DEVAGC549.PLANT_PERFORMANCE_MASTER_TEST_RESULTS (MASTER_TEST_NUMBER ASC)
WHERE Substring( ENVIRONMENT_RAN_IN, 1, 3) = 'CP1';


Alan, which os level were you able to get theses scripts to run on?

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Campin
Sent: Friday, May 4, 2018 1:57 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Better SQL performance than SUBSTRING

Always use Operations Navigator or the new Data base support in ACS to
build any SQL object. It will give you the proper syntax and everything you
need. Never create any SQL object by hand.

Here is the output of Ops Nav for an index it built for me.

/* Creating index DEVAGC549.MY_PERFORMANCE */
CREATE OR REPLACE INDEX DEVAGC549.MY_PERFORMANCE ON
DEVAGC549.PLANT_PERFORMANCE_MASTER_TEST_RESULTS (MASTER_TEST_NUMBER ASC)
WHERE Substring( ENVIRONMENT_RAN_IN, 1, 3) = 'CP1';

/* Setting system index name to PLPERM_I01 for DEVAGC549.MY_PERFORMANCE */
RENAME INDEX DEVAGC549.MY_PERFORMANCE TO SYSTEM NAME PLPERM_I01;

/* Setting label text for DEVAGC549.MY_PERFORMANCE */
LABEL ON INDEX DEVAGC549.MY_PERFORMANCE IS 'My Performance Index';

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.