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



Apparently the definition of the data structure in the sub-procedure without
using "PREFIX" causes separate copies of those field values to be maintained
within the sub-procedure.  If you retrieve a record from the file in the
sub-procedure, the fields will not be populated with the values in the
record because the file is defined outside the sub-procedure.  This makes
the field in the file global in scope versus the private scope of the fields
in the data structure.  

Check out the archives for November, 2003 at Midrange.com for a good
discussion of this subject after I asked a similar question. 

Hope that helps. 

Donald R. Fisher, III
Project Manager
Roomstore Furniture Company
(804) 784-7600 extension 2124
DFisher@xxxxxxxxxxxxx

<clip>
- A main program opens a file (FILE_A) as UPDATE
(allow ADDITION).
- A sub-procedure within the main program will define
a DS based on FILE_A, assign some values and WRITE to
FILE_A
- The result is A BLANK Record written to FILE_A
- If I move the 'E DS' definition of FILE_A out to the
main program, it worked.
<clip>

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.