BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9
Hi,

Is there an automatic variable to get hostname of the metadata server? If none, what are ways to get the hostname of the metadata server?

Many thanks!
Milton
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Why do you need the host name of the metadata server??? I think there are the "META" related system options, the &_META... reserved macro variables for stored processes, but otherwise, I'm not sure how you would find the hostname for a particular metadata server. Some references to research:
http://support.sas.com/documentation/cdl/en/lrmeta/60739/HTML/default/viewer.htm#a002221453.htm
http://support.sas.com/documentation/cdl/en/bisag/60945/HTML/default/viewer.htm#a003181757.htm

You might want to ask Tech Support for help with your specific task.

cynthia
monei011
Calcite | Level 5
A bunch of metadata server related options are used.
METAPASS="xxxxx"
METAPORT=8562
METAREPOSITORY="Foundation"
METASERVER="somehost.a.com"
METAUSER="someuser"

You probably don't want to hard code these, rather use macro variables whose values you set at the highest point in the calling chain. The values of the macro variables could be set as environment variables in a calling shell script and made accessible to the sas program using %sysget.
Also think about DNS aliases rather than actual hostnames. This makes things like DR easier.

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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