|
Make the file program defined. Then it doesn't know about record formats. This may introduce some additional limitations but I can't think of anything really awful at the moment. If your program is using an externally described view, it may think that it knows about all the possible formats. Richard Jackson mailto:richardjackson@richardjackson.net http://www.richardjacksonltd.com Voice: 1 (303) 808-8058 Fax: 1 (303) 663-4325 -----Original Message----- From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of Rob Dixon Sent: Monday, September 18, 2000 8:54 AM To: MIDRANGE-L@midrange.com Subject: Re: Using generic program to read multiple file formats Richard > Well, use externally defined data structures to define the formats, read by > FILE name not format name, then move the character buffer to the correct > format. You can use the IO feedback area or indicators to recognize which > format you received. Many thanks but that is what I am doing (or I think I am!) and I get undefined format errors (RPG1011) even though my read is by file name, not format. Any further ideas? Best wishes Rob ________________________________________________________ Erros plc 44 (0) 1844 239 339 http://www.erros.co.uk - The AS/400 Neural Database for the Internet _________________________________________________________ +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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 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.