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
Name any two sas spawners? : sas-grid-administration
Name types of category in which SAS Informats are placed?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
How do you connect the desktop application to metadata server? : sas-grid-administration
How we can create SAS USER DEFINED CODE?
What makes sas stand out to be the best over other data analytics tools?
what type of graphs we will create(for 2+years candidates)?
how are numeric and character missing values represented internally? : Sas programming
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
Explain what is SAS informats?
how the sas basic syntax style described? : Sas-administrator
why is a stop statement needed for the point=option on a set statement? : Sas programming
what is study design in while working with SAS? what are screening variables in SAS?
what is the Population you used in your project, is it ITT or PP?
How to include or exclude specific variables in a data set?