×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi,



I’m retrieving a list of libraries using embedded static sql like this:



exec sql

declare tctest08_cursor1 scroll cursor for

select objlib, objname, objtype, objowner

from table ( qsys2.object_statistics( 'QSYS', 'LIB', '*ALL' ))

where Case When :wildcard = '%'

Then objname like trim( :wxlib )

else

Case When :wildcard = '*'

Then objname = objname

else

Case When :wildcard = ' '

Then objname = :wxlib

end

end

end



for read only

;



Which works as expected if compiled at V7R5M0.

If compiled at V7R4M0 and below I get error:

SQL7906 30 5964 Position 38 SQL function not supported on prior release.

Function is - IS TRUE.



I need to get this compiled at V7R3M0 – is there any way to rewrite this CASE to work under V7R3M0?

Would prefer not to use dynamic sql….



Merry Christmas everyone



Stefan




This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.