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


  • Subject: Re: Automatic Storage for Global RPGLE Variables?
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Fri, 15 Jun 2001 16:36:57 -0500 (CDT)


Hi Jerry,

On Fri, 15 Jun 2001, Jerry Jewel wrote:

> 
> Scott,
> 
> Thanks for your feedback!  You have correctly read between the lines.  
> Your suggestion sounds like a good direction.
> 
> Some additional info and to complicate things a bit... my global
> control values already reside in four data structures -- three of them
> are multiple occurance.
> 

The best way to handle this would probably be to make the global data
structures be BASED, and put pointers into your "stack" DS for each of
the global structures.   Then, allocate new memory for the data structs
(doesnt really matter if they're mult-occur) at each instance level.


> 
> A couple of followup questions to be certain I understand this approach:
> 
> o Will I will need to execute an ALLOC (in 3b of your description) to
> set asside the storage?

Yes...   Not sure how I missed putting that in my description... but I 
had to rephrase that section several times when writing the mail, because
I just couldn't make it sound good :(

> 
> o At the risk of getting into a heap of trouble, I'll ask:  When you
> said "Here's a way that pops into mind... ...The idea is that you're
> creating a "stack" of global variables".  Did you mean to push a
> questionable pun on us?  ;-)
> 

Me?  Would such an idea even register on my mind?  Quite an assembly of
puns, I must say, but if it's gets stale I'm sure someone will interrupt.


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.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.