× 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: rpg400-l-digest V1 #132
  • From: "Ken Sims at SWS Nevada" <ken.sws@xxxxxxxxx>
  • Date: Mon, 12 Jul 1999 17:58:22 -0700

Hi Mark -

> Correct me if I'm wrong, but isn't each field in a DS a pointer to
an area
>in memory?  So, if I have 3 fields coming from three different files
and
>are combined in one DS, changing one field will change the value of
the DS.
> So why can't the same field be in multiple DSs?  It's just another
pointer
>to the same area in memory, right?


A subfield is not a pointer to a memory location, it's an actual chunk
of memory.  The data structure itself is a big chunk of memory and
each of the subfields are chunks of memory within the big chunk.
That's why when you change one field in a data structure it changes
the value of any fields that overlap.  And that's why you can't have
subfields in two different data structures that reference the same
location in memory.

Ken



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.