|
Wouldn't 16MB be 16 * 1024 * 1024 = 16,777,216 ??? Clearly, the documentation in the RPG reference is incorrect, since it lists the max value for %Alloc as 16,776,704. Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863 -----Original Message----- From: Alexei Pytel [mailto:pytel@xxxxxxxxxx] Sent: Thursday, July 03, 2003 10:45 AM To: RPG programming on the AS400 / iSeries Subject: Re: CEE0808 error on %alloc The largest single allocation is 16MB - 1 page, which is 16773120. Alexei Pytel always speaking for myself "Buck" <buck.calabro@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 07/03/2003 10:04 AM Please respond to RPG programming on the AS400 / iSeries To: rpg400-l@xxxxxxxxxxxx cc: Subject: Re: CEE0808 error on %alloc > i'm getting an error when trying to allocate space > in a program.it's CEE0808: > D Buffer S * > D BuffSize S 10I 0 INZ(16776704) > > C eval Buffer=%alloc(BuffSize) I see the same issue at V5R2. Perhaps this is a PTF? It works if you grab 16770018 bytes though. I thought it was related to the amount of storage already allocated to the program, but adding dome character variables didn't change the limit any. Nor did allocating several 16770018 byte buffers. --buck _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.