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



Has anyone experienced the following?



Scenario 1:



Pgm A has a loop that clears a 50-occurrence MODS.
Current occurrence is left at 50.

Pgm A calls Pgm B, passing the MODS as a parameter.

Pgm B sets current occurrence of MODS to 1 and populates
it.

Pgm B ends.

Pgm A looks in first occurrence of MODS and finds value.



Scenario 2:

Exactly the same as scenario 1, except the programs are
ILE and the call is through a procedure call.

When control is returned to Pgm A, value is in
occurrence 50 of the MODS.



Notes: In Scenario 2 if the occurrence of the MODS is set to 1 before
calling Pgm B, it works the same as scenario 1.

In Scenario 2, if Pgm B populates both occurrences 1 and 2 of the MODS,
upon returning to Pgm A, according to DEBUG, occurrences 50 and
51 (?) are populated!



Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx

************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information which may be confidential or privileged and is intended only for the individual or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the contents of this message.
All personal messages express views solely of the sender, which are not to be attributed to Lincare Holdings Inc., and may not be copied or distributed without this disclaimer.
If you received this message in error, please notify us immediately at MailAdmin@xxxxxxxxxxx or (800) 284-2006.
************************************************************************************************************************************************************************************************************

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.