To use the XMS access
method, a client and a server must run on the same computer (or node)
that runs the
z/OS operating
environment.
In most cases, when
using the XMS access method, you can specify the server using only
a server ID, because the client and server sessions run on the same
node. However, if you specify XMS as the primary access method and
TCP as the auxiliary access method in the client session, you must
use a two-level server name to accommodate the server-naming requirements
of TCP.
Here is the format for
the two-level node name:
SERVER=node.server-ID
Example 1:
options comamid=xms comaux1=tcp;
libname mylib '.' server=srvnode.share1;
In this example, if
a client/server connection succeeds using the XMS access method, the
node part of the server ID is ignored and only the server ID is used.
However, if the client/server connection fails using XMS, but succeeds
using TCP, the two-level server name is required in order for the
SERVER procedure statement to succeed. For details about the COMAUX1=
option, see
SAS/SHARE User's Guide. For details about the LIBNAME statement and the
OPERATE procedure, see
LIBNAME Statement in SAS/SHARE User's Guide and and
The OPERATE Procedure in SAS/SHARE User's Guide.
Example 2:
options comamid=xms comaux1=tcp;
libname mylib '.' server=srvnode._ _5000;
In this example, a port
number rather than a server ID is specified. Two consecutive underscores
(no spaces) precede the port number.
Note: A port number is valid for
the TCP access method, but not for the XMS access method. If XMS is
used, a port specification results in a failure. If TCP is used, a
port specification is valid.
If the node name is
not a valid SAS name, the node name can be assigned to a SAS macro
variable. The macro variable is substituted for the node name in the
two-level server name.
The access method evaluates
the node name, in this order of priority:
Example 3:
%let srvnode=mktserve.acme.com;
libname sales server=srvnode.server1;
This example shows the
assignment of only the node name to a macro variable.
Note: Do not use an ampersand (&)
in a two-level server name. An ampersand causes a macro variable to
be resolved by the SAS parser before syntactic evaluation of the SERVER=
option.
Example 4:
%let srvnode=mktserver.acme.com 5000;
libname sales server=srvnode;
This example shows the
assignment of the node name and the server ID to a macro variable.