Chapter Contents

Previous

Next
SAS/SHARE User's Guide

SERVERID

Converts a server alias to a serverid.


Syntax

%SERVERID(server-alias, <NEQ>);

server-alias
The SERVERID macro converts the server-alias to an actual serverid. It supplies the actual serverid in the form SERVER= to the SERVER and OPERATE procedures and LIBNAME statements.

NEQ
supplies only the serverid value (without the SERVER= option).

Additionally, the SERVERID macro generates a %LET statement for a macro variable whose name is the high-level qualifier in a two-level server name in the following form:

%LET high-level-qualifier=network-node;

The server name must be listed in the server information table and have a network node name associated with it, as shown in these examples

libname mylib 'SAS-data-library' %serverid(devserv); set server %serverid(serv1,neq);

The first example generates the LIBNAME statement, which supplies the SERVER=serverid parameter. The second example generates a SET SERVER statement, which supplies only the serverid without the SERVER= parameter keyword.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.