- data in;
- input a @@;
- cards;
- 2.3 3 311.4 4 13.2 2 2 2 23.33 4 1393.234
- ;
- run;
- data out;
- set in;
- retain max_int max_dec max_len;
- int_len = int(log10(a))+1;
- dec_len = length(scan(a, 2, '.'));
- LL = int_len + dec_len + 1;
- fff = cats(LL, '.', dec_len);
- if Int_len > max_int then max_int = int_len;
- if dec_len > max_dec then max_dec = dec_len;
- if LL > max_len then max_len = LL;
- run;
- proc print data=out; title 'out'; run;