Chapter Contents

Previous

Next
Communications Access Methods for SAS/CONNECT and SAS/SHARE Software

Windows: TCP/IP Access Method


SAS/CONNECT

Local Host

The following example illustrates the statements that you specify in a Windows local host SAS session to connect to a remote host with the TCP/IP access method:

filename rlink '!sasroot\connect\saslink\tcpcms.scr';
options comamid=tcp remote=rmtnode;
signon user=_prompt_;

The first line identifies the script file that you use to sign on to a CMS remote host. The TCP/IP communications access method is declared with a connection to the remote host RMTNODE. The SIGNON statement performs the sign-on process. The USER= option in the SIGNON statement specifies that a local host be prompted for a username and a password that are valid on the remote host.

Remote Host

You may set the following options in the Windows NT, the Windows 95, or the Windows 98 remote host SAS invocation to restrict port access:

-tcpportfirst=5020;
-tcpportlast=5050;

These statements restrict access to ports 5020 through 5050.

The following example shows how the PC spawner is invoked on a Windows NT, a Windows 95, or a Windows 98 remote host:

c:\sas\connect\sasexe\spawner -comamid tcp -file mysas.cmd

The spawner is invoked and the TCP/IP access method is specified. The -FILE option executes the MYSAS.CMD file, which invokes a SAS session.

See Starting the PC Spawner Program for information about the contents of a command file and executing the PC spawner. Options that are set by means of the spawner may override options that are set in a remote host configuration file.


SAS/SHARE

Client

The following example illustrates the statements that you specify in a Windows NT client SAS session to connect to a server with the TCP/IP access method:

options comamid=tcp;
libname sasdata 'c:edc\prog2\sasdata' server=rmtnode.share1 user=_prompt_;

The LIBNAME statement specifies the data library that is accessed through the server that is represented by the two-level name RMTNODE.SHARE1. The USER= option in the LIBNAME statement specifies that a client be prompted for a userid and a password that are valid on the server.

Server

The following example illustrates the statements that you specify in the server's configuration file on a Windows NT host:

-set tcpsec _secure_
-set authencr required

The value _SECURE_ for the TCPSEC option specifies that clients supply a userid and a password that are valid on the server. The value REQUIRED for the AUTHENCR option specifies that only encrypted userids and passwords from clients are accepted.

The following example illustrates the statements that you specify in a SAS session on the Windows NT host at which you start a server:

options comamid=tcp;
proc server id=share1;
run;

The TCP/IP access method is declared and the server SHARE1 is started on the Windows NT host.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.