BookmarkSubscribeRSS Feed
MicSun
Fluorite | Level 6

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. 

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Unsure this will help, but in case you don't know this syntax:

libname THISLIB "%sysfunc(pathname(THATLIB))" access=readonly;

 

MicSun
Fluorite | Level 6

Thank you for your reply. But still cannot find "Pre-assigned libraries"

libname CES "%sysfunc(libref(CES))" ;

NOTE: Library CES does not exist.
Tom
Super User Tom
Super User

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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 713 views
  • 0 likes
  • 3 in conversation