I want to append this excel worksheets using macro. Please Help
Multiple sheets into one sheet
Sounds like an Excel forum question not SAS.
SAS would likely require creating a single data set and then exporting that set.
Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software or organization policy. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.
Hello @Daily1
Your possible solutions are here
https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/040-30.pdf
https://www.pharmasug.org/proceedings/2011/CC/PharmaSUG-2011-CC10.pdf
Define a libname:
libname book1 xlsx "path_to_file/book1.xlsx";
Then SET all datasets:
data all;
set
order
return
people
;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.