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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1281 views
  • 0 likes
  • 3 in conversation