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 on. Order details (ORDERSD) Order number, sequence number (never zero), item code, quantity, and so on. We can declare an LF as follows: ORDERS.LF R RHEAD PFILE(ORDERSH) A K ORDNBR A K SEQNBR R RDETLS PFILE(ORDERSD) A K ORDNBR A K SEQNBR You may then access the file as you like best. It's that ok ? Ciao 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: email@example.com +---END
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.