DATA Step, Macro, Functions and more

metadata hostname

Reply
Super Contributor
Posts: 326

metadata hostname

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
SAS Super FREQ
Posts: 8,864

Re: metadata hostname

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
Occasional Contributor
Posts: 12

Re: metadata hostname

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.
Ask a Question
Discussion stats
  • 2 replies
  • 171 views
  • 0 likes
  • 3 in conversation