×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You can specify multiple characters to be trimmed in V5.3
You can also use the TRIML() and TRIMR() subprocedure that I wrote/published
a few weeks ago at www.mcpressonline.com/midrangedev 
-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of rob@xxxxxxxxx
Sent: Monday, April 26, 2004 10:14 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Will %trim trim *loval?

Jon,

Will the new %trim support multiple characters?  Suppose your variable was 
like the following:
'A' + x'40004000400040004000'  or 'A' + blank + loval + blank + loval...
Wouldn't the nesting there be rather intense?  Granted, you'd have to be 
in a chemically altered state to get that, but I wouldn't have to remember 
is it:
mychar = %trim(%trim(myvar):x'00);
or
mychar = %trim(%trim(myvar:x'00));
or, in other words which came; the string of nulls or the string of 
blanks?


Rob Berendt
-- 
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





"Jon Paris" <Jon.Paris@xxxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
04/24/2004 01:37 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: Will %trim trim *loval?






 >> Can anyone think of a reason that you would not want *loval treated 
like
*blanks with the *trim operation?  If so, you think there's a chance that
a DCR might do any good?

Yup - it's not a space <grin>

V5R3 will give you relief - you'll be able to specify the character to 
trim.

I can't imagine a DCR would have any effect - I can't think of any other
language where trim would remove X'00's - and the new function will allow
you to do it anyway.

Jon Paris
Partner400
www.Partner400.com

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




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