|
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. Let the better ideas flow! 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 5:39 AM To: midrange-L@midrange.com Subject: Using generic program to read multiple file formats I am sure that many years ago I knew how to read multiple files with differing formats in a generic RPG program without getting undefined format errors, but, if I did, I have forgotten how. I have tried several tricks, without success. Any ideas please? Many thanks 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.