• Subject: R: Non-Join multi-PF logical file format
  • From: Finucci Domenico <finucci@xxxxxxxxxxxx>
  • Date: Wed, 24 May 2000 17:02:23 +0200

Hello, Chris. It's rather simple.
Let's take an example. Let's have a classical couple of PF: order details
and order headers. 
Here it is their structure: 
Order header (ORDERSH)
Order number, sequence number (always zero), customer code, date , and so

Order details (ORDERSD)
Order number, sequence number (never zero), item code, quantity, and so on.

We can declare an LF as follows:
        R    RHEAD    PFILE(ORDERSH)
        A    K    ORDNBR
        A    K    SEQNBR
        A    K    ORDNBR
        A    K    SEQNBR
You may then access the file as you like best. 
It's that ok ?  
Domenico Finucci

| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-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-2021 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.