|
<<SNIP>>
Of course the saga continues as now it's been determined that
some of the SQLs in question are against keyed logical views that
have select/omit involved. I realize that indexed views are
unique to System i, and wonder if there is an SQL-equivalent for
them. I've written a program that will create a view over the
physical using auto-generated SQL with appropriate CAST(), and
now I'd like to expand that to also generate for these LFs.
It seems that QSQGNDDL is (somewhat) happy retrieving the SQL
source for these files either as an index or as a view, but of
course the generated source pair fails miserably when trying to
create an Index and a view of the same name. So I wonder if
there's an SQL way of doing that, or if I have to resort to
building DDS and generating from there? Again, the goal is to take a working SEQUEL (not SQL) statement like "SELECT COMPNAME
LEN(20) FROM MY_LF" (which now fails because of the column type
for COMPNAME) and allow it to execute by casting a new type for
COMPNAME in a view/index called MY_LF to be created in a new
library.
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
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.