Chapter Contents

Previous

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

CMS: TCP/IP Access Method


SAS/CONNECT

Local Host

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

These commands save the script-file in the local host's environment. The fileref format follows:

filename rlink 'sasconne maclib';

The following commands are issued from the command line in the PROGRAM EDITOR window:

inc rlink(tcpunix)
file 'tcpunix'

The following statements are issued in the CMS local host SAS session:

filename rlink 'tcpunix' a;
options comamid=tcp remote=rmthost.unxspawn;
signon user=_prompt_;

The first line identifies the script file that you use to sign on to the UNIX remote host by means of the UNIX spawner program. The script file contains a prompt for a userid and a password that are valid at the remote host. The TCP/IP communications access method is declared with a connection to a remote UNIX spawner that is identified by the two-level name RMTHOST.UNXSPAWN. The SIGNON statement performs the sign-on process. The USER= option in the SIGNON statement specifies that the connecting local host be prompted for a userid and a password that are valid on the remote host.

Remote Host

You do not perform any tasks at the CMS remote host for the TCP/IP access method.


SAS/SHARE

Client

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

options comamid=tcp;
libname sasdata 'sasdata a' server=rmtnode.share1 user=_prompt_ ;

The TCP/IP access method is declared. The LIBNAME statement specifies the data library that is accessed through the server that is identified 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 a SAS session on the CMS host at which you start a server:

%let tcpsec=_secure_;
options comamid=tcp;
proc server id=share1;
run;

The _SECURE_ value for the TCPSEC macro variable requires clients to supply a valid server userid and password in order to allow client access to the server. The TCP/IP access method is declared and the server SHARE1 is started on the CMS host.


Chapter Contents

Previous

Next

Top of Page

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