The
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
/etc/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.
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 by using the
-service
spawner option, you must specify the
service-name when
signing on. Therefore, the value of
service-name that
was specified during spawner start-up must be identical to the value
of the
service-name that is
specified in the sign-on. Alternatively, you can specify the explicit
port number that is associated with
service-name directly
in the SIGNON statement.
Example 1:
In the following example, REMHOST is the name of the node on which the spawner runs,
and spawner1
is
the name of the service that is defined at the client. The client
service spawner1
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 on which the server runs. 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;