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

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1024 views
  • 1 like
  • 2 in conversation