It depends on the format that you use.
If you use e.g. 10.4 all values will be decimal justified,
possibly causing leading spaces.
If you omit the format values the result may be left justified:
INPUT c $ @@;
n = INPUT ( c, BEST.); * no further w.d info;
PUT c= n=;
1 .00001 999999
yields in the log:
Show us your code where you want left justification.
Regards - Jim.
Jim Groeneveld, Netherlands
Statistician, SAS consultant
On Tue, 2 Dec 2008 11:59:32 -0500, Katie Schmidt <kathryn.schmidt@IBX.COM>
>I converted a variable with a character format to a variable with a numeric
>format. Now the the numeric variable shows up in the SAS dataset with
>leading spaces (in other words, the values are not left-justified).
>How do I get rid of the leading spaces and left justify the numeric
>The trim and left functions work but they also convert the variable back to
>a character format at the same time, which is NOT what I want.
>Thanks to anyone who can help!