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



Tony, 

 

I have a requirement to do just what you describe.  I need to read from
a work file that has the same fields as a production file, except for
the last field.

 

Can you post an example of the solution  ?

 

Thanks,

 

Richard

 

 
Tony Corolla wrote :
Now, if let's say that I have a file, that is JUST like the FAMLY file
in the example, with the same field names and all (Let's call it
DFAMLY), except for _one_ extra field in the beginning of the record
format.  I need to read a record from the FAMLY file, CHAIN to find
the matching record in the DFAMLY file, and compare the fields (except
the extra one).
 
To accomplish this, I wanted to create a data structure that matched
the record format of each file, one for FAMLY, and one for DFAMLY. 
Then, I wanted to make a third DS, that matched the record format of
the FAMLY file, but base it on a pointer to the DS for the DFAMLY
file.  I assumed it would match the fields by name, as per a book I
have read.
 
Instead, when I read a record from the DFAMLY file into the data
structure for the DFAMLY file, I check the values in the based data
structure, and the fields are offset in the subfields, by three bytes
(the size of the 'extra' field).
 
Any help would be greatly appreciated.  
 

 


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.