|
Check out the Nov. 97 issue of NEWS/400 magazine. It covers this subject. You can download the code from their web site http://www.news400.com . HTH. -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jon A. Erickson - Viking Industries jonerickson@vikingindustries.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=- -----Original Message----- From: Leland, David [SMTP:dleland@harter.com] Sent: Wednesday, December 10, 1997 6:40 AM To: 'MIDRANGE-L@midrange.com' Subject: RE: PC file Layouts ?? If you ever do get this info, please share it. I've wanted to do this for some time now but was always stymied by exactly the same thing you're looking at. Dave p.s. Creating the .CSV is not that easy of a thing to do either. Care to share your code? I've written one as well but have not taken the extra step of doubling up on double quotes where they exist within the data. >---------- >From: John Carr[SMTP:74711.77@compuserve.com] >Sent: Wednesday, December 10, 1997 7:34 AM >To: Midrange-L >Subject: PC file Layouts ?? > > >Hi All > >Ok I have working RPG programs that can READ from and WRITE to the IFS >directly >using API's (Thanks Jon, Ray, and Ted). > >I can make/writeto .TXT types and .CSV types and can Read from most >any >type. > >I would like to read a AS/400 data base file and "Drop" that info >straight >into an Excel .XLS >type file. (I know what you're gonna say, Good luck). I have Read >in a >simple spread sheet >with only 2 rows and 3 columns just to look at the stuff in debug as it >was >comming across. Weird stuff. > >My question is; does anyone know how to figure out the "File Layout" >of >various PC file types? >Most importantly a .XLS spreadsheet type? > >It's like ""working with a program described file which only contains >binary & alpha fields and you don't >have the layout or manual"" I can reverse engineer what the >different >bytes are but it would take a >lot of time. > >Anybody have a clue as to how to go about this?? > >TIA > >BTW the programs are really NEAT stuff. I can read in a PF (which I >have >filled via a CPYFRMSPLF > report. and then write that stuff directly to a .TXT type file on the >IFS >directory which then can be >used by users to read or email(via attachments). Neat stuff > >John Carr >EdgeTech > >+--- >| This is the Midrange System Mailing List! >| To submit a new message, send your mail to "MIDRANGE-L@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 >+--- >umidr > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@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 +--- umidr +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@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.