11-17-2016 12:55 AM
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.
proc import datafile="C:\Documents\execrise2\Database.xls"
11-17-2016 01:33 AM
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:
11-17-2016 03:26 AM - edited 11-17-2016 03:29 AM
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.
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.
11-17-2016 10:14 AM
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.