BookmarkSubscribeRSS Feed
RubenPloeg
Calcite | Level 5

I scrolled down all support pages of sas but cannot find my answer. My question is short and simple: Is there a code for SAS EG that establishes the connection with a server?

 

With server, I mean the servers as they are found in the Tools>SAS Enterprise guide explorer, and with code I mean a code line in your sas program so that the program itself automatically runs on the right server.

 

Hope this is just a simple question, but I couldn't find it anywhere.

2 REPLIES 2
Kurt_Bremser
Super User

The server connection has to be established before you can run any SAS code, so this would not work anyway.

And there is no SAS code element to "remote control" the frontend.

TomKari
Onyx | Level 15

Good news: it is a simple question. Bad news: the answer is "no".

As @Kurt_Bremser says, EG has to establish a SAS session before any SAS code can  be executed. This is done using facilities that don't involve any SAS code. So there's no way from within SAS code to invoke a server.

In my experience, EG starts a SAS server session as soon as I submit code, or when I open a server to examine the files and datasets.

Tom

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 854 views
  • 0 likes
  • 3 in conversation