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
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));
Assuming that you're talking about a Grid environment the following could help.
@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
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));
Thanks:
%put _all_;
works fine.
Regards,
Peter
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.
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.