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?

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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