The name of the server
can be specified in an OPTIONS statement:
OPTIONS REMOTE=node-name[.service-name | .port-number];
You
can also specify it directly in the SIGNON statement or command:
SIGNON node-name[.service-name | .port-number];
node-name is
based on the server that you are connecting to.
node-name must
be a valid SAS name that is 1 to 8 characters in length and is either
of the following:
-
the short machine name of the server
that you are connecting to. This name must be defined in the HOSTS
file in the client operating environment or in your Domain Name Server
(DNS).
-
a macro variable that contains
either the IP address or the name of the server that you are connecting
to.
For more information, see
About TCP/IP Internet Protocol (IP) Addressing.
You specify
service-name when
connecting to a server that runs a spawner program that is listening
on a port other than the Telnet port. If the spawner was started
by using the -SERVICE spawner option, you must specify an explicit
service-name.
The value of
service-name and
the value of the -SERVICE spawner option must be identical. Alternatively,
you can specify the explicit port number that is associated with
service-name.
In the following example,
REMHOST is the name of the node that the spawner runs on, and PORT1
is the name of the service that is defined at the client. The client
service PORT1 must be assigned to the same port that the spawner is
listening on.
In the following example,
the macro variable REMHOST is assigned to the fully qualified name
of the machine that the server runs on. This server has a spawner
running that is listening on port 5050. The server session that is
specified in the SIGNON statement uses the node name REMHOST and the
service-name 5050, which is the explicit port value.
%let remhost=pc.rem.us.com;
signon remhost.5050;
You can also assign
a specific port number by including the port number in the definition
of the macro variable. For example:
%let remhost=pc.rem.us.com 5050;
signon remhost;