BookmarkSubscribeRSS Feed
julia7
Calcite | Level 5

The data I want to import is in my myFolders folder but it will not import.The data I want to import is in my myFolders folder but it will not import.

I am trying to import data, so I saved it into my myFolders folder on my desktop but when I try to import it in sas, it just says the selected file is invalid. 

3 REPLIES 3
Tom
Super User Tom
Super User

What kind of file is that .dat file? How you try to "import" it?

julia7
Calcite | Level 5
It is just a raw data file, and I am going into the import data drop down from the top left button on SAS university edition. It prompts me to select a file from my computer, and I select a file from my myfolders folder I have connected to SAS through virtualbox, but when I select import it says invalid.
Kurt_Bremser
Super User

I guess that SAS does not know (from the extension) what to do with the file. .dat is an extension used for a LOT of file formats.

If it is a text file, you can use proc import with the proper dbms= value; or (preferred) just write a data step to read it.

What does the documentation you received with the file say?

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1861 views
  • 0 likes
  • 3 in conversation