To change the length of a variable you need to create a new dataset. data new; length wb $6 ; set wbhat ; run; Do you really care if the DBF file has numeric or character variables? You could convert AGE to $1 using a PUT function call. data new; set wbhat (rename=(age = numeric_age) ); age = put(age,1.) ; drop numeric_age ; run; If you are more comfortable with SQL syntax then use PROC SQL. proc sql ; create table new as select wb as wb length=6 , put(age,1.) as age length=1 , put(mg,3.) as mg length=3 from wbhat ; quit;
... View more