Can't think of a way of doing that, Doug. I think you'll have to define W_ADDRESS1 explicitly as:

  W_Address1 VarChar(200);

- then assign from PHADDRESS1 to W_ADDRESS1 to do TRIM-less string handling.

Brian.

On 05/12/2025 22:28, DEnglander--- via RPG400-L wrote:
Does anyone know how to do something like this:

I would like to define a %TRIMmed disk field that is CHAR(200)
[PHADDRESS1] as a VARCHAR and eliminate the %TRIMs.

So as not to hardcode the size of the VARCHAR, can I define it as VARCHAR
but based on the length of the CHAR(200) field? Something like:

dcl-s w_address1 varchar(%len(phaddress1));


Can that be done?

Thank you,

Doug

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.