|
You can change storage that's passed by reference... In fact, that's the normal way to pass a variable that you want to change, you pass it by reference. Something else must be going on here. Maybe you're accessing data beyond what you passed? For example, if you passed a *varsize variable, and then did a 'eval variable = *blanks' that would overwrite memory past the end of the variable. Can you post the code? On Mon, 25 Nov 2002, JJW wrote: > Hi *ALL > > I pass a parameter with option(*varsize) to a subprocedure > of a service program by reference. I modify the parameter > and upon trying to return the parameter to the calling > program I get a pointer not set error. I can however move > the parameter to a field defined LIKE the parameter, > change the like field and pass that field back with no > problem. > > Is it true that a parameter passed to a subprocedure by > reference cannot be changed and returned? > > TIA!!! > > John
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.