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



This sounds like a multi-format logical file, because you said FIELD1 is in the same position from two different files.
This also means multiple record formats, one from each externally described physical file, you define two "sets" of I-specs, one for each external record format.

FIELD1 is in both PFs in the same position
FIELD2 is in PF1 only.
A 5 character field exists in both formats at position 59.

I_RecdFmt1 _
I ExtFld1 Field1
I ExtFld2 Field2
I ExtFld3 Field3

I_RecdFmt1 _
I ExtFld1 Field1
I ExtFld3 Field3

---Alan




On 10/4/2010 10:51 AM, David FOXWELL wrote:
Hi all,

In this code MYFILE is to become externally described.

IMYFILE NS
I 2 23 FIELD1
I P 39 432FIELD2
I P 59 632FIELD3

MYFILE is a logical based on two physical files.

FIELD1 is in both PFs in the same position
FIELD2 is in PF1 only.
A 5 character field exists in both formats at position 59.


I want to rename the fields after declaring MYFILE as externally described.

I_________
I EXTFL1 FIELD1
I EXTFL2 FIELD2
I ______ FIELD3


What format name do I use? How do I know which is the external name for FIELD3?

Thanks.




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.