Re: Weird behavior of a TRIML instruction
"James H H Lampert" <[email protected]>
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Message-ID | <[email protected]> |
I wrote: > Would anybody have any idea why > > TRIML FOO, BAR, ' '; > > 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> nevermind </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. -- JHHL _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.