×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




1) Is there not an MI instruction to get the length?
2) Does the exception return the length that IS available since it's less
than 10,000? Can you then re-read that length?

-Walden


------------
Walden H Leverich III
President
Tech Software
(516)627-3800 x11
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com



-----Original Message-----
From: Leif Svalgaard [mailto:leif@leif.org]
Sent: Thursday, January 31, 2002 13:16
To: MI400 List
Subject: [MI400] unknown block length


Folks,
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?



_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list To
post a message email: MI400@midrange.com To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/mi400
or email: MI400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.