Ü  %TRIMR

·         It is used to trim the trailing spaces.

 

Example –%trimr built-in function in rpgle


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

 

 










User Comments:



Subscribe

  Email:



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