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





Multi-member files can get v. complex - especially in conjunction with
logical files (and multi-format logicals !).

You must remember that the member contains the data. A logical file
member can link to any member of a physical file - you must specify
at creation time how you want the links to work.

e.g.

Physical file FILE  MEMBER1
               MEMBER2
               MEMBER3

For logical file LOGICAL over physical FILE
If you wish to have a logical member to attach to each physical
file member (logical member1points to physical file member1 & so on)

CRTLF FILE(LOGICAL) MBR(LGLMBR1) DTAMBRS((FILE (MEMBER1)))
ADDLFM FILE(LOGICAL) MBR(LGLMBR2) DTAMBRS((FILE (MEMBER2)))
ADDLFM FILE(LOGICAL) MBR(LGLMBR3) DTAMBRS((FILE (MEMBER3)))

By default the CRTLF command creates a member of the same name as
the logical file which is not always wanted.

There is only a one-to one relationship for logical to physical members
(eg u cannot have a single logical member which points to all 3 physical
members at the same time)

Hope this helps

Mike





Colin Thorpe <Colin@IBS-PUBLIC-SERVICES.CO.UK> on 22/02/2000 09:13:56

Please respond to RPG400-L@midrange.com

To:   "'RPG400-L@midrange.com'" <RPG400-L@midrange.com>
cc:    (bcc: Mike Barton/Wellingborough/UK/ECSOFT)

Subject:



 Good Morning / Afternoon,

I have written a small program using a multi member physical file.
This physical file has 3 logicals built over it L0,L1,L2

I create a new member in the physical file, but when the program runs, it
falls over
with a message saying that the logicals do not contain the members
specified.

If, when I add a new member to the physical file I also add one to the
logical file, all is well.

I do not understand why it is necessary to add members to Logical files,
surely the logical is just a pointer
to the physical, the physical is overridden to the required member, hence
the logical points to the required member.
As far as the logical is concerned it is pointing at the physical.
This was my understanding but is obviously wrong...
If anyone can offer me an explaination it would be greatly appreaciated.

I hope this makes sense

Thanks in advance

Colin Thorpe


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---






+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.