I wrote:
Would anybody have any idea why


where BAR is CHAR(475) and FOO is BIN(4,0), and BAR contains 5 EBCDIC digit characters followed by 470 blank spaces,

would return 475, instead of just 5?

<Emily Litella voice>
</Emily Litella Voice>

Blame the verstenken OPM debugger, defaulting to only the first 200 characters of a string variable: there WAS garbage on the end, because I'd expanded the variable (it's a general purpose string variable) without adjusting the code that clears the tail end of it.


This thread ...


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

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