|
Hi Charles,
Charles Wilt wrote:
I really don't see where it is necessary to set the variable to it's
maximum length as shown.
%len(Input_String) = %size(Input_String)-VARPREF (VAPREF is 2)
If you increase the length of a VARYING field, for example if the length
is 5, and you do %len(field)=10, RPG will automatically blank out the 5
characters it just added.
That's why you have to set the field to it's maximum length beforehand,
otherwise RPG will blank out the characters you just received.
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.