Hi Carl, [SNIP] > 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, here: http://www.iseriesnetwork.com/resources/clubtech/index.cfm?fuseaction=ShowNewsletterIssue&ID=17654 and then more recently I did one on teraspace allocation: http://www.iseriesnetwork.com/resources/clubtech/index.cfm?fuseaction=ShowNewsletterIssue&ID=18258
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.