I am working on a requirement where I have to trim Graphic ('G') or UCS2 ('C') field in RPG program.
%TRIMR is not working for these fields.
A Graphic or UCS2 field is declared with a length of 15000. However, it only contains 258 character (graphic/ucs2 type). But, using TRIMR does not remove the remaining spaces (15000-258).
Please let me know if anyone has any idea on how to remove extra spaces from a graphic or UCS2 field in rpgle.
May 18, 2012 9:52 AM
May 19, 2012 1:04 PM