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
How you can read the variables that you need?
Explain why double trailing @@ is used in input statement?
What is program data vector (pdv)?
Can you explain the process of calendar?
what are sas/access and sas/connect? : Sas programming
What is the maximum length of the macro variable? : sas-macro
What makes sas stand out to be the best over other data analytics tools?
How to test the debugging in sas?
What does P-value signify about the statistical data?
Explain the purpose of retain statement.
What are the applications primarily used by business analyst? : Sas-bi
Which command is used to save logs in the external file?
What is the SAS data set?
What do you understand by the term Normal Distribution?
Describe the function and untility of the most difficult SAS macro that you have written.