Don't really understand how you can have some values with fractions and the rest as whole numbers.
If the fractional values only appear in small values then you could use a custom format.
proc format ;
value commad
0<-<1
,1<-<2
,2<-<3
,3<-<4
,4<-<5
,5<-<6
,6<-<7
,7<-<8
,8<-<9
,9<-<10
= [10.2]
other = [comma10.]
;
run;
data test;
input count :comma.;
put count commad.;
cards;
1,000
2
578
7.1
67,253.52
22,000
3,211
;
But that would get a little large if you wanted support values like 67,253.52.
Otherwise just generate text.
175 data test;
176 input count :comma.;
177 string = put(count,comma10.2);
178 string = tranwrd(string,'.00',' ');
179 put count comma10.2 +1 string ;
180 cards;
1,000.00 1,000
2.00 2
578.00 578
7.10 7.10
67,253.52 67,253.52
22,000.00 22,000
3,211.00 3,211
... View more