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
Tell e how how dealt with..
How would you include common or reuse to be processed along with your statements?
What are the statements that are executed only?
What are the differences between proc means and proc summary?
Explain the purpose of retain statement.
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What are the features of SAS?
do you prefer proc report or proc tabulate? Why? : Sas programming
how can you create zero observation dataset? : Sas programming
explain about sas business intelligence? : Sas-bi
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What is Linear Regression?
what is sas application server? : Sas-di
What is the good sas programming practices for processing large data sets?
what are some good sas programming practices for processing very large data sets? : Sas programming