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



Hi Zak,

[SNIP]
> CRTRPGMOD and CHGMOD don't seem to have any way to change the storage
> model to *TERASPACE. How do I do it?

There are two different things here:

TERASPACE-ENABLED:

This means that the program is able to work with memory allocated in
teraspace.  Pointers are allowed to address it, etc.  You can use the
TS_malloc() API and similar APIs to allocate & work with teraspace memory.

This is an "always on" feature in ILE RPG at V4R2 and later, in ILE CL at
V5R1 and later, etc.  ILE C can enable or disable this with the TERASPACE
option on the CRTCMOD command.

TERASPACE-STORAGE-MODEL:

This means that the compiler uses teraspace for the all of the normal
variables in your program (as opposed to BASED variables that you allocate
the memory for yourself.)  Doing this would allow you to have, for
example, a data structure that's total size is larger than 16mb.

AFIAK, only ILE C supports the teraspace storage model.  You can enable it
with the STGMDL(*TERASPACE) option on the CRTCMOD command.

HTH


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.