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?
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.
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.
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?
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.
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!
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.
Ready to level-up your skills? Choose your own adventure.