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



A colleague tried to clue me in on OLAP functions (new SQL support V5R4). Of course when I tried the simplest one I could think of, it failed with the spectacular message SQL0255 'Function not supported for query.' Reason code 6.

Go read the book some more. Find out that there are restrictions. This is the one that applies: a table referenced directly or indirectly in the fullselect must not be a DDS-created logical file. In the case of the example statement (below) it refers specifically to a PF, but of course the optimiser may choose a logical file if it prefers (although debug doesn't tell me because it error out before telling me.)

Whaaaaa? Who has a database without any DDS logical files? Must be some large SQL-only server customer is all I can figure. OLAP is quite useless to me with this restriction.

select rank() over (order by state) as rank,state,count(*)
from custfile
group by state
order by rank,state

As an Amazon Associate we earn from qualifying purchases.

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