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

Hi All,

 

How can I figure out on which server SAS DI currently works?

In my case SAS uses several servers which are chosen randomly and I don't know which one is currently used.

 

I was trying to run code:

%put _GLOBAL;

but there is no sever name given by it.

 

Regards,

 

Piotr

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

@Peter_Wine

If you don't get with %put _GLOBAL_; or %put _all_; what you need then what's the problem to get the info in other ways like.

%put %sysfunc(grdsvc_getname(task1));

 

View solution in original post

4 REPLIES 4
Peter_Wine
Calcite | Level 5

@Patrick thanks for answer but it doesn't give answer I need.

 

I'd like to get the same info which is printed by command:

%put _GLOBAL_;

 

answer should be like this:

GLOBAL _SASHOSTNAME 'server_name'

 

Or why when I run command

"%put _GLOBAL_;"

option

"GLOBAL _SASHOSTNAME 'server_name' "

is not printed?

 

Regards,

 

Peter

 

Patrick
Opal | Level 21

@Peter_Wine

If you don't get with %put _GLOBAL_; or %put _all_; what you need then what's the problem to get the info in other ways like.

%put %sysfunc(grdsvc_getname(task1));

 

Peter_Wine
Calcite | Level 5

Thanks:

%put _all_;

 

works fine.

 

Regards,

 

Peter

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 4 replies
  • 1930 views
  • 0 likes
  • 2 in conversation