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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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