Thanks!
You can pass a large variable through a CL, but the CL cannot create
or use anything past byte 9999.
Example
PROGRAM1 RPG or some other language creates large array which
allocates the memory 899 * 1000.
It can then call PROGRAMCa CL and pass it the variable.
The CL can declare it as a *CHAR with a length of 1 or anything up to
9999. If the CL does anything to the variable, it can only access the
CL's declared size.
The CL can do it's thing and then call PROGRAM3 and pass the variable
to it.
As long as PROGRAM3 defines the variable the same as PROGRAM1, then
it works.
Remember you are actually passing a pointer to a memory location, not
actually passing the data. So the CL can receive a pointer and then
hand it over to someone else.
If you do this, you had better have a good reason and document it or
the people how inherit your code will say very bad things about you,
try to "fix" the code and crash the system.
Denny
On 19 Jul 2002 10:41:46 -0700, stephe...@attcanada.com (Steve)
wrote: