Hi Carl,

> MQ supports message up to 4MB, the limitation is in RPG.
> Does anyone out there know C?  Is there a limitation on the size of a
> variable in C?

You can work around the 32k limitation in RPG quite easily, either by
allocating memory from the heap, or by using a user space.  The limitation
then becomes 16mb which a system-limit when using the single-level store
method of doing allocations.

In V4R4 and later, RPG can also use teraspace allocations which allow you
to go to nearly 2gb in a single allocation. But, since you only need 4mb,
it should be relatively easy to accomplish in RPG.

I did an article on handling large strings in RPG for the iSeries Network,

and then more recently I did one on teraspace allocation:

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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