BookmarkSubscribeRSS Feed
Wendy13
Calcite | Level 5

I have created spread sheet in excel and trying to import data file to SAS.

My program version is SAS94 and excel is 34 bit. I found out SAS94 requires excel data convert to cvs.

When I try to import cvs file using import wizard, I get following error message:

Unable to sample external file, no data in first 5 records.

ERROR: Import unsuccessful.  See SAS Log for details.

What is it mean?

I do have some blank spaces in first 5 lines (which is missing values)

How can I import cvs. file into SAS? Please help me Smiley Sad


3 REPLIES 3
Reeza
Super User
I found out SAS94 requires excel data convert to cvs.

I don't think that's true unless your licensing has changed.

Have you tried Proc Import to import the data, or a data step? You'll need to post either code or a sample file for more help.

Kurt_Bremser
Super User

You need to know the structure of the csv file, then you can write a suiting data step, which does not need any license beyond base at all. Ask for the documentation of the file; if there is none, return to sender.

Ksharp
Super User

add an option      datarow=8 .

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 979 views
  • 0 likes
  • 4 in conversation