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
What is run-group processing?
what are informats in sas? : Sas-administrator
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
for whom is sas data integration studio designed? : Sas-di
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
Explain bmdp procedure?
What are the difference between ceil and floor functions in sas?
How to sort in descending order?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
What is the basic syntax style in SAS?
What are the limitations for memory allocation for SAS variables
Explain why double trailing @@ is used in input statement?
State the difference between INFORMAT and FORMAT ?
Describe the function and untility of the most difficult SAS macro that you have written.