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-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

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
  • 2335 views
  • 0 likes
  • 3 in conversation