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
explain the concepts and capabilities of business object? : Sas-bi
Explain what is data step?
What does PROC print, and PROC contents do?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
Describe crosslist option in tables statement?
What are the new features included in the new version of SAS Programming Language?
How to create an external dataset with sas code?
What is the use of stop statement?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
How do you specify the number of iterations and specific condition within a single do loop?
How to test the debugging in sas?
what is the purpose of _error_? : Sas programming
How many data types are there in SAS?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What is the purpose of _character_ and _numeric_?