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 is hash files in sas and why we are using this one in sas?
explain the proc in sas? : Sas-administrator
Are you involved in writing the inferential analysis plan? Tables specfications?
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
Which statement does not perform automatic conversions in comparisons?
How would you invoke a macro? : sas-macro
Tell me about % include and % eval? : sas-macro
What are the different types of sas functions?
Did you used proc test? when?
Which command is used to save logs in the external file?
what is study design in while working with SAS? what are screening variables in SAS?
Describe crosslist option in tables statement?
What are the difference between ceil and floor functions in sas?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What is the work of tranwrd function?