|
Ali G,
Well you could do it but you might lose some precision on your numeric
vars. But that is your call you know your data better than I.
data one ;
infile cards ;
input num ;
cards ;
1
12
123
1234
12345
123456
1234567
12345678
1223456789
1.123456789
;
run ;
proc sql ;
create table two as
select num length = 5
from one ;
select num
from two ;
quit ;
proc contents
data = two ;
run ;
Toby Dunn
Is there any other way to reset a numeric variable length other than by
this method?:
data a;
length myvar 5;
set a;
run;
Using 8.2 on z/os.
Many thanks.
|