BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jade_SAS
Pyrite | Level 9

Hi All,

 

   If I have a SQL database, and I need to run the below code to have the library "test" show up under SAS Enterprise Guide libraries.

   Libname test odbc user=*** password=*** datasrc=***;

 

   Is there a way I can do in Enterprise Guide to save running that code every time? I mean once I open the EG, the library is already under the SAS Enterprise Guide libraries, without runing the code I provided above.

  

   Thank you!

Jade

1 ACCEPTED SOLUTION

Accepted Solutions
Sven111
Pyrite | Level 9

There are a couple of ways potentially.  I have several libraries setup in my SAS Autoexec file on my SAS Server. That way whenever I start Enterprise Guide (Miner too I think) or a batch job on the server, those standard libraries are always there, along with other things I use regularly, like various macro variables and system options.  Enterprise Guide itself has a similar functionality internally too, it's in the options under "SAS Programs" where you can specify custom code to run on EG startup or or other times.

 

Capture.PNG

View solution in original post

3 REPLIES 3
Sven111
Pyrite | Level 9

There are a couple of ways potentially.  I have several libraries setup in my SAS Autoexec file on my SAS Server. That way whenever I start Enterprise Guide (Miner too I think) or a batch job on the server, those standard libraries are always there, along with other things I use regularly, like various macro variables and system options.  Enterprise Guide itself has a similar functionality internally too, it's in the options under "SAS Programs" where you can specify custom code to run on EG startup or or other times.

 

Capture.PNG

Jade_SAS
Pyrite | Level 9

Thanks! Both of your reply are solutions to my question!

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

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