If you are a beginner like me and have to work with Excel files, this should help you.
Suppose you have an Excel file named abc.xlsx that has multiple sheets and let xyz be one of those sheets. Further suppose that within that sheet you want to extract data from the region B4:H200 and create a sas data set.
This is how you can accomplish this.
CONNECT TO EXCEL (PATH="L:\Raghu\Desktop\Code\abc.xlsx");
CREATE TABLE SasDataset AS
SELECT * FROM CONNECTION TO EXCEL
(SELECT * FROM [xyz$B4:H200]);
DISCONNECT FROM EXCEL;
Note: The code uses column values from the first row to create variable names.