BookmarkSubscribeRSS Feed
sasisstuck
Calcite | Level 5
I'm trying to import an Excel spreadsheet - one that I imported repeatedly last week with no trouble at all - using the import macro under "File>import data" in SAS 9.2.

After running through the macro, the "Log" window on says says, "Proc SQL running". It continues to run for a little under 5 minutes, then prints out a massive list of warnings, it looks like a warning for each column in the spreadsheet, each reading:

"Warning: failed to scan text length or time type for column ."

Then two errors:

"ERROR: Cursor extended fetch: Unable to get row data
ERROR: Import unsuccessful. See SAS Log for details."

The file is now in SAS, but only the first 8 lines were imported.

I don't think I'm doing anything any differently than I was when I tried to do this on Friday. It seemed to work just fine then (except that all my column names were double after import, so a column that read "ID" in Excel would read "ID ID" in SAS after the import procedure).

Any ideas? I would really appreciate some help. Message was edited by: sasisstuck
1 REPLY 1
LinusH
Tourmaline | Level 20
It comes into my mind: "what has changed?"
I presume that you haven't modified this macro, so has anything changed in your Excel-file? Maybe someone is locking the file by having it open?

What happens if you try to read another Excel-file? Or from a different location?

If this macro uses then libname excel engine, that will explain the Proc SQL note, since it uses SQL to extract/update Excel sheets.

If this does not help, maybe this is a task for SAS support.

/Linus
Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 1 reply
  • 996 views
  • 1 like
  • 2 in conversation