How to convert .xls file into CSV format?
Answer Posted / khaja
%macro imp (datasetname=,path=,fname=)
proc import out=&datasetname
datafile = "&path"
dbms = "&fname" replace;
getnames=yes;
run;
%mend;
%imp(datasetname=xyz,path="D:\docs...",fname=csv)
if you want to convert into txt,xls,mdb then simply you use
%imp(datasetname=xyz,path="D:\docs...",fname=mdb)
%imp(datasetname=xyz,path="D:\docs...",fname=txt)
%imp(datasetname=xyz,path="D:\docs...",fname=.xls)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you control the number of observations and/or variables read or written?
What is program data vector (pdv)?
is data integration and etl programming is same? : Sas-di
What is the basic structure of the SAS base program?
What are the special input delimiters used in SAS?
What is a macro routine?
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
What are the ways in which macro variables can be created in sas programming?
What are the statements in proc sql?
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
what is hash files in sas and why we are using this one in sas?
what is sas application server? : Sas-di
What does P-value signify about the statistical data?
Describe 5 ways to do a “table lookup” in SAS?
what other sas products have you used and consider yourself proficient in using? : Sas programming