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
What are pdv and it functions?
what is the purpose of _error_? : Sas programming
What are the special input delimiters used in SAS?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
What is SAS informats?
How do dates work in sas?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Describe what are the different levels of administrative users in sas? : sas-grid-administration
How to test the debugging in sas?
what is sas olap server? : Sas-di
Mention the category in which sas informats are placed?
what is the primary data source for the wrs? : Sas-bi
explain the difference between proc means and proc summary?
Difference between informat and format?
Describe crosslist option in tables statement?