space
Previous Page | Next Page

SAS/SHARE Macros

SERVERID Macro



Converts a server alias to a server ID.
Category: Operator, Server, User

Syntax
Syntax Description
Details
Syntax
Examples

Syntax

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

Syntax Description

server-alias

The SERVERID macro converts the server-alias to an actual server ID in the SERVER= option in the SERVER and OPERATE procedures and LIBNAME statements.

NEQ

supplies only the server ID value (without the SERVER= option).


Details

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;

Examples

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

libname mylib 'SAS-data-library' %serverid(devserv);

set server %serverid(serv1,neq);

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

space
Previous Page | Next Page | Top of Page