Zvi,

RPG allows the use of teraspace pointers, so you can allocate memory to them, manipulate them, copy data to them, etc. in an RPG program. You do not need to compile with any special options for this.

ILE C on the other hand, is a bit different. It has the ability to be compiled as "teraspace enabled" which basically makes it use teraspace for EVERYTHING by default, instead of just when you call special APIs.

The problem is, you have an RPG program that's passing a single-level storage model parameters to a teraspace-enabled C program. The C program is expecting a parameter allocated in teraspace.

I would guess that you could fix this problem (though I haven't tried it) by creating variables in teraspace in the RPG program and then passing those as parms instead of using the SLS parms.

Like I said, I haven't tried it, but it's worth a shot.

---
Scott Klement  http://www.scottklement.com

On Sun, 29 May 2005, Zvi Kave wrote:

Vernon,

If I create RPGLE module by CRTRPGMOD in V5R3 or V5R2:
CRTRPGMOD MODULE(SV/TVUEP) SRCMBR(TVUEP)
(Note: CRTPGMOD has no STGMDL parameter.)

and then
CRTPGM PGM(SV/TVUEP) MODULE(SV/TVUEP) STGMDL(*TERASPACE)
then I got an error message:
Module has incompatible storage model.
Program TVUEP not created.
Can you help?


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].