I want o import file from second row but it is throwing out error. Below mentioned is the statement that i have executed.Please find the attachement for error formed.
Statement Executed:
proc import datafile="C:\Documents\execrise2\Database.xls"
out= work.a
DBMS=EXCEL REPLACE;
SHEET="Gold$";
GETNAMES=NO;
DATAROW=2;
RUN;
Your error message refers to the DELIMITER = option which is not in your posted code. Also DATAROW is not available with DBMS = EXCEL, try DBMS = XLS instead:
Still its not working
Post your SAS log then.
Get rid of the crappy Excel file format. Export to something sensible and text-based (CSV!!) from Excel, and read that into SAS.
Excel files only cause problems.
Why?
With Excel, you always force SAS to make guesses about column attributes and the size of the data (no of rows and columns) for you.
With a text file and a data step, you control the import process.
Run the system, don't let the system run you.
Please post the log of the code you ran along with any error messages.
If there is not an error the describe exactly how it is not working. Is there no data in the result? Incomplete data? Unexpected data? Provide details of exactly what is unsatisfactory.
Note that providing the Excel file may not help as Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.