In new SAS Grid computing environment, there are some pre-assigned libraries, such as CES, CI...Good thing is SAS EG users are able to access to different server directly. But, I have to manually assign library (double click 'CES' library from sas server) before I can pull data/use tables. I am wondering that is there a way to use SAS statement to assign SAS libraries 'CES' without double click? In this way, I can automatic/schedule SAS programs without manually interrupt. In this case, I don't have SAS admin right and no libraries path...as a business user ONLY.
Unsure this will help, but in case you don't know this syntax:
libname THISLIB "%sysfunc(pathname(THATLIB))" access=readonly;
Thank you for your reply. But still cannot find "Pre-assigned libraries"
libname CES "%sysfunc(libref(CES))" ;
NOTE: Library CES does not exist.
Where are these libraries defined? If they are only assigned in EG then your SAS program cannot reach back into your PC and ask EG what libraries you defined. If they are defined in your SAS Metadata server then you should be able to discover them, but I don't know how since I don't use that feature of SAS.
Why not just put in the SAS code to define the libraries? Do you know how they are defined?
If you want to have some control then place these statements in a place where you code and find them and just use %INCLUDE statement to pull in the code and run it.
Or are you talking about SAS connection session? Where there are some libraries defined in the local session and you want to reference those locations in the remote session? Not sure how to do that but it is easy to do it the other way using the REMOTE engine on the libname statement.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.