Import Xls Sas Code
Import Xls Sas Code
/* Import */
proc import
file=mydata
out=test replace
dbms=xls;
run;
Proc Format;
Value Age
1 = 'Less than 25'
2 = '25-34'
3 = '35-43'
4 = '44-50'
5 = '51-59'
6 = '60 or more';
Run;
Add FORMAT statement to use user defined format in PROC MEANS.
You can use AUTOLABEL option to automatically assigns unique label names in the
Output Data Set “holding” the statistics requested in the OUTPUT statement.
You can specify variables for which you want summary statistics to be saved in a
output data set.
data sales;
input products $ revenue;
datalines;
ProductA 100
ProductA 200
ProductA 300
ProductA 150
ProductA 250
ProductB 350
ProductB 200
ProductB 300
ProductB 400
;
run;