@GPNaveen: bad programming practice:
24 data test;
25 input price comma10.2;
26 price2=compress(price,,'kd');
27 datalines;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
26:17
NOTE: The data set WORK.TEST has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.00 seconds
Clean programs should never have automatic numeric type conversions.
Instead use
data test;
input price $10.;
price2=compress(price,,'kd');
datalines;
825,563.25
;
run;
or
data test;
input price comma10.2;
price2=compress(put(price,best.),,'kd');
datalines;
825,563.25
;
run;
I would even define proper length for character variables according to the expected (infile documentation!) range.
... View more