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 computer 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).
-
Here is the process
for evaluating node-name:
-
If
node-name is a macro variable, the value of the macro variable is passed to the operating
environment's
getnameinfo()
function.
-
If
node-name is
not a macro variable or the value of the macro variable does not produce
a valid value,
node-name is
passed to the
getnameinfo()
function.
-
If
getnameinfo()
fails to resolve
node-name,
an error message is returned and the sign-on fails.
Note: The order in which the getnameinfo()
function calls the DNS or searches the HOSTS file to resolve node-name varies
based on the operating environment implementation.
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 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.
Example 1:
In the following example, REMHOST is the name of the node that the spawner is running
on. cspawn
is the name of the service that is defined at the client. The client
service cspawn
must be assigned to the same port that the spawner is listening on.
Example 2:
In the following example, the macro variable REMHOST is assigned to the fully qualified
name of the computer 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 port number 5050.
%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;