One of the other replies gives you a solution without going to RPG - I
think - the one with the REPEAT function.
That one gets the length of the fully-trimmed value and uses that to get
the number of leading blanks you need.
On 4/7/2014 3:17 PM, Buzz Fenner wrote:
On Mon, 7 Apr 2014 16:50:41, Eric DeLong wrote:
How did you define "field"? If it is NOT varchar (or DDS Varying), then
the trim will be ineffective, due to >the fixed length default behavior of
Hmm, unfortunately it's not Varying so I may have to resort to a small rpg
program where I can get the data into a varying field and do the string