|
On Wed, 19 May 2004 17:18:13 -0500 (CDT) Scott Klement <klemscot@xxxxxxxxxxxx> wrote: > > Hi Brad, > > > Assume I have field varField defined as Varying in an > RPG > > program. > [SNIP] > > eval varField = '^^^^^^Data^^^^^' > > (Each ^ is a blank) > [SNIP] > > Should varField then equal: > > "^^^^^^Data" > > No. It should equal exactly what you assigned to it. > '^^^^^^Data^^^^^' > Ok, the reason I ask is I have a subprocedure that reads and IFS file. After the read it does this: return $subst(buffer:1:BytesRead) When I call it using a variable length field as the return variable, it's getting the leading blanks truncated from it. The return field is not defined as Varying in the subprocedure. just 32767 byte field (may switch it to varying in the future... just testing now). So if I return '^^^^^^^^^^^^^Data' I get back: 'Data' Very odd.
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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.