×
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.
Alan Campin wrote:
Anybody got any idea why this would not work? We are at V5R4 and it is
my understanding that multiple dimension array for an SQL statement can
either be an OCCURS or a DIM but the DIM does not compile.
I have some similar code which works well. The only difference I can
see is the use of the BASED keyword. Seems unlikely to be the problem,
but it might be worth checking what happens without that?
Probably won't help your compiler error, but you may want to consider
using a host variable for the FOR x ROWS part of your statement:
D proList...
D DS qualified
D dim(100)
D OT...
D 3P 0
D id...
D 7P 0
D maxPros...
D S 3P 0 inz(%elem(proList))
exec sql FETCH NEXT FROM problemDetails
FOR :maxPros ROWS
INTO :proList;
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.