|
On 02/07/2004, at 11:05 AM, Jon Paris wrote:
I agree that the field is too small Keith/Simon, but isn't the function
supposed to handle that? I thought it was supposed to return the length
that the compression requires but only actually fill the space provided.
Not just blow up. In case anyone wonders why I'm using 52 - it is because
that is the max for DSPLY sadly.
I based this test on an example that directly used the underlying MI
built-in and it had a length of 52 for both input and result and that one
works just fine. Since it works I have to assume that the compression
option it is using ( Algorithm = 2) is not the same as the one used for the
cprdata function. Wonder why. In fact using this option the full 52
characters are indeed compressed since the reverse decompression works just
fine and restores the original string intact.
Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists
http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.