How can I get format to return a 4 digit number without a space for a sign?
In the example below, xtrans is a 5 char text value, I only want 4 char or it won't fit in the position I need it to go into.

set var xtrans = (format(.Numtrans,'0000'))

R>show var xtrans
2314

R>set var ln = ' '

R>set var ln = (sput(.ln,.xtrans,1))

R>show var ln
2314

2314 actually is in positions 2 thru 5

Bernie Lis

Reply via email to