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



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.

This will not compile. The pre-compiler throws it out as an invalid data
structure.

d dsStateMap...
d ds Qualified
d Dim(32765)
d Based(ptrStateTable)
d State...
d Like(StdInt)
d Column...
d Like(StdInt)
d NextState...
d Like(StdInt)
d Error...
d Like(StdChr)
d ActionCode...
d 50

But this will compile.

d dsStateMap...
d ds Qualified
d Occurs(32765)
d Based(ptrStateTable)
d State...
d Like(StdInt)
d Column...
d Like(StdInt)
d NextState...
d Like(StdInt)
d Error...
d Like(StdChr)
d ActionCode...
d 50

As usual it doesn't say why. It just says invalid.


Here is fetch statement.

Exec Sql Fetch Next From C2
For 32765 Rows
Into :dsStateMap;

Am I getting mixed up or it this a call to IBM?

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.