11-13-2014 09:52 AM
I am trying to import an excel file with 65000+ observations and 20 variable however i am receiving an error message while importing the file in sas. Below is the error message and the code used for
importing the same:-
PROC IMPORT OUT= WORK.Trans
DATAFILE= "F:\dell blue\Data Backup 05-02-2014\Downloads\SAS
Study Material\Statisitical Projects\Delay Transport Data\Delay_Status_
WARNING: Failed to scan text length or time type for column ( same error message for multiple columns)
11-13-2014 10:14 AM
The range="Sheet1$" looks a bit odd. what happens if you just put the proc import line and run (i.e. no other options). Also as a suggestion convert to CSV.
11-13-2014 12:56 PM
Is the excel tab name exactly 'Sheet1'? No leading or trailing spaces? (I ran into that once...)
You are getting a different error message, so it looks like progress. Now the error points to a mismatch between what you have in the SHEET statement and what is on your excel tab label.
I have code that I use everyday....
the label on the excel tab is: JRM Data
11-13-2014 01:02 PM
Oh, and one other option.
Run the import wizard, and utilize the last step where it saves the SAS code into a file. Then look at that code to see what it shows.
11-14-2014 06:36 AM
Is there really an _error_ or only the warning you mention?
What´s the exact problem? Are there really missing or wrong data?
Maybe the warning is only about an empty column.
11-08-2017 08:25 AM
I know this is old - but for anyone coming across this in 2017 (like I just did) - my issue was that my workbook was apparently protected. Once I unprotected the workbook, I no longer got this error message.