How to convert .xls file into CSV format?
Answer Posted / paul
step#1:Import excel file into SAS
proc import datafile='file location/filename.xls'
out=datasetname dbms=excel replace;
sheet='sheetname$';
getnames=yes;
run;
step#2: Export file to csv file.
data _null_;
set datasetname;
file 'location/file1.csv';
put <var list> ;
run;
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Give an example where SAS fails to convert character value to numeric value automatically?
What are the differences between sum function and using “+” operator?
How would you invoke a macro? : sas-macro
what is sas data set?
How to specify variables to be processed by the freq procedure?
Enlist the functions performed by sas.
What do the PUT and INPUT functions do?
Explain bmdp procedure?
what is sas application server? : Sas-di
Which statement does not perform automatic conversions in comparisons?
Did you used proc test? when?
Describe a time when you were really stuck on a problem and how you solved it?
what is data integration? : Sas-di
do you need to know if there are any missing values? : Sas programming
What is PROC in SAS?