×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




The way you propose to do is means, the procedures are in the same programme. 
Then the MODS and the counter can be declared globally. And I think it is a 
waste of resources to first fill a MODS and then read a MODS in the same 
programme, unless it is embedded SQL (FETCH INTO xx ROWS).

I think the requester wants to return a MODS from an externally called 
procedure. Then a pointer may be a solution, if the MODS is in contaguous 
storage.

Does it have tp be a MOFDS, anyway? Can it not be an array?

Just my thoughts.

Regards,
Carel Teijgeler. 

*********** REPLY SEPARATOR  ***********

On 4-7-05 at 13:03 Alan Campin wrote:

>Not except by using a pointer but why would you want to? Simply call a
>procedure to load an internal structure and return a count. Then code a
>procedure to get one record at a time in a loop and process. That would be
>ILE. Returning the entire structure would be monolith. Also, I would
>recommend some form of a dynamic structure in your load procedure.
>Declaring a data structure with that many occurrences is going to chew up
>a lot of memory and I will bet most of the time you are not going to use a
>fraction of it. 
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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