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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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