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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.