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



On 30-Aug-2011 09:12 , Schutte, Michael D wrote:
FYI, TIMESTAMP_FORMAT cannot be used when creating a derived index.

CRPence on Tuesday, August 30, 2011 11:03 AM

On 30-Aug-2011 06:25 , Schutte, Michael D wrote:
Looking for a best solution for implementing and using derived
index. <<SNIP>>

The following expression(s) might be more succinct [¿and
functional?] alternatives. <<SNIP>>

I figured that might be the case :-( While left unstated, that was one of the various reasons for my having included "¿and functional?". Another reason would be the requirement that all of the numeric data properly represent legitimate dates. Sorry that scalar function TIMESTAMP_FORMAT was of no assist; I have only v5r3 available to verify\test anything, and I did not recall if that was a limitation.

Some of the system-supplied SQL functions are effective UDFs, yet the documentation seems lacking with regard to both any special "Note:" of that, along with the associated restrictions given the special implementation. I forget how those functions are described in nomenclature, in either messages or the documentation. Those functions with restrictions also seem not to be separated in any way from the other builtins which do not suffer the same restrictions [e.g. also for use in CHECK CONSTRAINT], as presented in the hierarchy of the doc link:

SQL reference > Built-in functions > Scalar functions
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/db2/rbafzscatsformat.htm

Regards, Chuck

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.