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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 1692 views
  • 0 likes
  • 2 in conversation