
Anisha L.
asked 05/18/21SAS Excel Issue
Hello,
I need help with SAS. I have an excel file that I am trying to import directly into SAS; however, it doesn't seem to want to work. I have tried changing the excel file type to no avail. I just need help getting the excel imported to create the SAS file.
1 Expert Answer

Michelle M. answered 11/11/22
PhD Candidate with 5 years of SAS experience
To import a file into SAS try using the following code (perhaps try CSV if XLS does not work):
PROC IMPORT DATAFILE= '/home/yourusername/yourfilename.csv'
DBMS=CSV
OUT=WORK.nameforyourdataset;
GETNAMES=YES;
RUN;
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Mona A.
you need to use proc import to import an excel file. what is the error that SAS gives you in the log ? that will help determine the issue and how to solve it02/11/22