|
From: Leif Svalgaard <leif@leif.org> > Problem: a file is uploaded (binary) from a PC. > I need to read it in MI to parse out the data. > The size of the file is not known, I need to read until > the end. I define a record size of (say) 10000 and > start reading. I get the CVP5001 exception as usual > at the end of the file, but the last (incomplete) block > I don't get. How to get it? > a duh question, I think. It turns out that I had already defined the file on the AS400 with a different record length than the one I was trying to read it with. If I don't do silly things like this, I don't seem to have the problem. Still, if anybody knows any "gotchas" related to this....
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.