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
Differences between where and if statement?
name several ways to achieve efficiency in your program? : Sas programming
how the sas basic syntax style described? : Sas-administrator
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
what is star schema? : Sas-di
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
how to remove duplicates using proc sql?
Name any two sas spawners? : sas-grid-administration
how does sas handle missing values in functions? : Sas programming
Mention what are the data types does SAS contain?
what techniques and/or procs do you use for tables? : Sas programming
What is the function of output statement in a SAS Program?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
what is the difference between floor and ceil functions in sas? : Sas-administrator
what do the mod and int function do? What do the pad and dim functions do? : Sas programming