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



Nope STGMDL(*TERASPACE) seems to simply allow teraspace storage from another program (i.e. via parm) or dynamic storage defined by %Alloc to be used by an RPG program. It apparently has no effect on the max size of an individual item.

To be sure I tried this:

ctl-opt STGMDL(*TERASPACE) ALLOC(*TERASPACE);
dcl-s array char(1000) dim(18000) based(pArray);

pArray = %Alloc(20000000);

*InLR = *On;

This uses a dynamic memory array which the ALLOC directive should ensure is in teraspace.

Compiler rejects the size of array as being beyond the 16Mb limit.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Dec 30, 2014, at 5:38 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Good point Scott. I’m fairly certain that the 16Mb still applies. I’ll do some checking.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Dec 30, 2014, at 5:35 PM, Scott Klement <midrange-l@xxxxxxxxxxxxxxxx> wrote:


Jon,

Is this true even if you use STGMDL(*TERASPACE)?

-SK


On 12/30/2014 4:28 PM, Jon Paris wrote:
Arrays are now only limited by the 16Mb single item storage limit (as of V6). That also means that dynamic arrays can’t get you a bigger array unless you use terraspace.

Size limit is 16Mb / %Size(arratElement) - no hard limit.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.