SAS : Importing multiple excel sheets in a single dataset

Live Online Training : SAS Programming with 50+ Case Studies

- Explain Programming Concepts in Simple English
- Live Projects
- Scenario Based Questions
- Job Placement Assistance
- Get 10% off till Oct 26, 2017
- Batch starts from October 28, 2017

Suppose you want to import multiple excel sheets with the same variable names into a library and then merge data from all the sheets to a single data set.




How to use :

1. Paste the above program into SAS program editor window
2. Change the path mentioned in the first line of program (highlighted below in red)

libname myxl excel 'C:\Deepanshu\SAS\Excel Sheets.xls' ;

3. Run the program

SAS Tutorials : 100 Free SAS Tutorials

About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has close to 7 years of experience in data science and predictive modeling. During his tenure, he has worked with global clients in various domains like retail and commercial banking, Telecom, HR and Automotive.


While I love having friends who agree, I only learn from those who don't.

Let's Get Connected: Email | LinkedIn

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

2 Responses to "SAS : Importing multiple excel sheets in a single dataset"

  1. Thanks a lot sir, Your Posts are really helping me good

    ReplyDelete
  2. Hii
    can u please tell me why there is a need of concatenate ''n to memname .for eg in ur code it is like sasuser.'admit'n . and also when i run your cod i get appended data two times .

    ReplyDelete

Next → ← Prev