%trim's 2nd parameter can be multiple characters-to-trim.

So instead of a double trim like this

CHGVAR VAR(&FILELABEL) VALUE(%TRIM(%TRIM(&FILELABEL) X'00'))

use a single trim like this

CHGVAR VAR(&FILELABEL) VALUE(%TRIM(&FILELABEL X'0040'))

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /


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-2022 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.