|
I was just thinking... maybe the number that they give in the RPG reference manual (16776704) is the highest that you can specify, and that a higher number is rejected at compile time. So, syntax-wise it's the highest number allowed. On the other hand, the runtime error is probably more related to what the operating system can do at the time you call %alloc(). In the extreme case, if you filled up all of your main storage (both RAM and disk) except for 2k, then %alloc() could only allow 2k. Or, in a less extreme case, maybe the largest contiguous piece of memory that's not in use is only 10mb, if that's the case, it could only return 10mb, so you'd get an error. This is just conjecture, but it would explain why everyone seems to be getting different numbers. On Thu, 3 Jul 2003, Richard B Baird wrote: > > 10 different numbers from 10 different manuals. > > obviously, even ibm isn't sure. > > I though i had it taking the rpgle ref listed max, last week, but i was > wrong - it was 16700000. that's what i'll use. > > > ---------original message-------- > Hi Alexei! > > > The largest single allocation is 16MB - 1 page, which is 16773120. > > RNX0425 says 'value between 1 and 16776704' but I cannot allocate even the > amount you note; only 16770018. Oh, well. > --buck >
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.