How to read multiple excel sheets from a single excel file
at once????
Answer Posted / lucylu
%macro read_moresheets(ifile, lib);
libname ixls excel &ifile;
proc sql;
select memname into :ds1 - :ds100
from sashelp.vtable
where libname = "IXLS" and index(memname,'$') = 0
;
quit;
%put _user_;
%do i = 1 %to &sqlobs;
data &lib..&&ds&i;
set ixls.&&ds&i;
run;
%end;
%mend;
%read_moresheets("C:\Ongoing\CallActivity.xls", work);
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Explain the difference between nodup and nodupkey options?
Describe the function and untility of the most difficult SAS macro that you have written.
what is slowly changing dimension? : Sas-di
what is the function of catx syntax? : Sas-administrator
What makes sas stand out to be the best over other data analytics tools?
Explain append procedure?
Mention the category in which sas informats are placed?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
Tell e how how dealt with..
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What are common programming errors committed in sas
What is maximum number of rows and cols can be handled in SAS?
AE datasets names? how many types?
what is data integration? : Sas-di
how will you locate the sas platform applications? : Sas-bi