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



If you're passing the same parameters into the recursive call, and they are output capable (not Const or Value), then the any change made to those fields will pass back up the recursive chain to the original instance of the procedure. If this is what you're experiencing, I can't really suggest what to do w/o knowing more about what you're doing. Maybe the parameters shouldn't be output capable, if so, you may want to either use Value or as Const and move the parameters to locally defined variables.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael_Schutte@xxxxxxxxxxxx
Sent: Monday, March 16, 2009 3:40 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Recursive Subprocedure help.


V5R4

I thought that the parm list was local to the call level? So that when
return from the recursive call, your parm list hadn't changed in the
instance?

When I returned back to the first instance the parm variable was the value
of the last instance.

I obviously thought I was okay with using the parms in the procedure, but I
guess I need to move them to local variables in the produce.



Michael Schutte
Admin Professional



We've wrapped up a whole new breakfast adventure in Bob Evans BOBurrito.
Premiering at 5.99. For more information and to enter the FREE Breakfast
Every Week for a Year Sweepstakes ($500 value), visit www.BOBurrito.com

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.