Thanks, Bryan.

Just last week I was looking for a %trim function in CL.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of bdietz400@xxxxxxxxx
Sent: Tuesday, October 23, 2012 4:58 PM
To: Midrange Systems Technical Discussion
Subject: new PTF for v7.1 CL programming

Just passing along....

PTF SI48166

OSP-CL-CMPL-PERFM Add support for %TRIM built-in function

APAR Error Description / Circumvention
The limitation of one string operation built-in function, %SUBSTRING, in CL forces application developers to spend time and effort on workarounds when manipulating character strings in CL programs and CL procedures.

The original CL compiler and the ILE CL compiler will provide support for the following additional string operation built-in
%TRIM - Trim Characters at Edges
%TRIML - Trim Leading Characters
%TRIMR - Trim Trailing Characters
All of these CL built-in functions will have almost the same behavior as the RPG built-in functions by the same name. The CL function names were chosen to be the same as RPG to make the CL built-in functions as easy and intuitive for RPG application developers to use as possible.

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page