Greetings
I have sas enterprise guide which is connected to a remote server. however, I can access all the data within a library called ENRFIL and I can see all the varaibles within each dataset but if I wrote the code below it keeps telling me :
Libref ENRFIL is not assigned.
CODE:
Data Mydata;
set ENRFIL.NSSE;
run;
finally I have found the problem.
at the top most of my program the selected server is not the same as the server my file has.
there I just checked on that arrow change the server to SASApp and then it worked.
thanks for everyone tried to help me on this issue.
ok so I right clicked on the library and chose properties.
so I wrote
libname ENERFIL '/Students Training/Engineering files/Data';
but now it start telling me that the NSSE file does not exist though can view it manually!
That "Location" is the where the SAS metadata definition of the library is stored and nothing to do with the folder location where the actual data is stored. Try this and post the complete SAS log:
proc contents data = ENERFIL.NSSE;
run;
didn't work, rather, at "proc contents data=ENERFIL.NSSE" it tells me that ENRMGMT is not assigned. is there another way I can look for the location of the data
In your first post you show
ENRFIL
In your second you show
ENERFIL - note the E.
Your code references the first.
Try using the second assignment with the E and see if that works.
@Abdulla1 wrote:
ok so I right clicked on the library and chose properties.
so I wrote
libname ENERFIL '/Students Training/Engineering files/Data';
but now it start telling me that the NSSE file does not exist though can view it manually!
Thank you Reeza, for your response, I actually have two libraries with these two names, but I'm still unable to open datasets in any of them. I think the problem is that sas referring to libraries in in deferent server but I still don't know how to fix that.
finally I have found the problem.
at the top most of my program the selected server is not the same as the server my file has.
there I just checked on that arrow change the server to SASApp and then it worked.
thanks for everyone tried to help me on this issue.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.