Ü  %TRIML

·         It is used to trim the leading spaces.

 

Example –%triml built-in function in rpgle

 


D FirstName       S             10A   inz ('   John ')
D LastName        S             15A   inz ('   Cena')
D Name            S             25A
 
/FREE
     Name = %triml (FirstName) + ' ' + %triml (LastName); // Name = John Cena
 /END-FREE










User Comments:



Subscribe

  Email:



Copyright © Go4as400.com, 2013-2017. Copyright notice