BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
amconnel
Fluorite | Level 6

I have imported a txt file as my data in SAS. (The data was taken from a beta app, emailed, and downloaded as a txt file.) I am able to save the project, but when I exit out of the application, I receive the error message in the photo below. If I click "OK," when I reopen the project, the data will not pull through, and I have to redo the entire project. 

Is there a way this can be fixed? Do I need to convert my dataset to an alternate format?error temp data.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
PhilC
Rhodochrosite | Level 12

Work is a temporary LIBNAME reference.  So here is another example of a LIBNAME reference:

 

LIBNAME Desktop "c:\user\amconne1\Desktop";

Data Desktop.CARS;
  set SAShelp.CARS;
run;

This code creates a SAS dataset "CARS" on your Windows desktop, assuming your desktop is there, of course.

 

See: Example 1: Assigning and Using a Libref

View solution in original post

4 REPLIES 4
PhilC
Rhodochrosite | Level 12

No, you don not need convert to an alternative format.

 

The trick would be to 1) create a LIBNAME reference that points to a folder that you desire to hold the data file, then, 2), in SAS, choose the location of the final form of your data step to be written to that LIBNAME reference.

amconnel
Fluorite | Level 6
Could you explain more about creating a LIBNAME reference?
amconnel
Fluorite | Level 6

I have attached a photo of my code. I see here where it says my data is a temporary file. Is it here that I need to create the LIBNAME?code for temp data.PNG

PhilC
Rhodochrosite | Level 12

Work is a temporary LIBNAME reference.  So here is another example of a LIBNAME reference:

 

LIBNAME Desktop "c:\user\amconne1\Desktop";

Data Desktop.CARS;
  set SAShelp.CARS;
run;

This code creates a SAS dataset "CARS" on your Windows desktop, assuming your desktop is there, of course.

 

See: Example 1: Assigning and Using a Libref

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4 replies
  • 1623 views
  • 1 like
  • 2 in conversation