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



Hi -

On Tue, 4 Sep 2007 13:06:57 -0500, "Lim Hock-Chai"
<Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote:

(Because most programmers here are likely to use extname of the physical
file as the third parameter, I need to make sure that the likerec and
extname produce exact same DS).

Your code only ensures that they occupy the same storage. It does not
in any way ensure that they have the same fields with the same
attributes and positions.

In this situation I would probably have just the PF data structure
defined with EXTNAME. Clear the data structure. Chain to the
appropriate logical file without specifying a data structure on the
chain.

Without data structures on the chains, the records will be processed
field by field. If there are any fields in the physical but not in
the logical, the data structure fields will keep the value set by the
clear. If there are any fields in the logical but not in the
physical, the values in those fields will not appear in the data
structure.

Ken
http://www.kensims.net/
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.

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