I am trying to delete a file and it had created a copy of itself in my library and my data. I am unable to delete it because it says "INVALID PHYSICAL NAME"
OK. Here is the original code:
libname mylib "~/MyFolder"; proc datasets library=mylib kill; run; quit;
The part you want to change is what is in quotes:
"~/MyFolder";
On SODA, your Files(Home) is your root directory, and you can call that with:
"~/"
I see you want to delete datasets from two subfolders-- MyData and MyLibrary.
So run the code once like this:
libname mylib "~/MyData"; proc datasets library=mylib kill; run; quit;
Then run it again like this:
libname mylib "~/MyLibrary"; proc datasets library=mylib kill; run; quit;
Make sense?
@dheaney wrote:
I am trying to delete a file and it had created a copy of itself in my library and my data. I am unable to delete it because it says "INVALID PHYSICAL NAME"
How are you trying to delete it?
Did you run code? Show the code and the log from the execution of the code.
Did you use some interactive feature? What interactive tool are you using? What action did you take (what menu did you use)?
I got this error
{}
[TRACEBACK]
at Object.<anonymous> (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/web...)
at https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...
at c (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
at d (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
at resolve.callback (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
at c (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
at d (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
at reject.errback (https://odamid-usw2.oda.sas.com/SASStudio/proxy/308101.5.0.20220427130200_f0dms381p/resources/js/doj...)
I would like to delete the following:
student_performance_factors2.sas7bdat
That error is telling you that you aren't pointing to the correct folder. Make sure to change the folder path in the code to the folder where the files are.
OK. Here is the original code:
libname mylib "~/MyFolder"; proc datasets library=mylib kill; run; quit;
The part you want to change is what is in quotes:
"~/MyFolder";
On SODA, your Files(Home) is your root directory, and you can call that with:
"~/"
I see you want to delete datasets from two subfolders-- MyData and MyLibrary.
So run the code once like this:
libname mylib "~/MyData"; proc datasets library=mylib kill; run; quit;
Then run it again like this:
libname mylib "~/MyLibrary"; proc datasets library=mylib kill; run; quit;
Make sense?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Ready to level-up your skills? Choose your own adventure.