Chapter Contents

Previous

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

Windows: SPX Access Method

CAUTION:
Version 6 Only Beginning with Version 7, the SPX access method is not supported. However, information about SPX is included here for Version 6 users.  [cautionend]


SAS/CONNECT

Local Host

The following example illustrates the statements that you specify in a Windows NT or a Windows 95 local host SAS session to connect to a remote host with the SPX access method:

options set=sasuser userid set=saspass password;
options set=spxmsgsize 4202;
options comamid=spx remote=sasrem;
signon;

This example assumes a connection to a PC spawner that is running in secure mode. The SAS options SASUSER and SASPASS allow the userid and the password to be passed to the remote PC spawner, which permits a connection. SPXMSGSIZE is set (see Setting SAS Options and Variables for details). The SPX communications access method is declared with a connection to the remote host SASREM, which is the name that is specified in the -SPXNAME option to the PC spawner invocation. The SIGNON command performs the signon procedure.

Remote Host

The following example illustrates the statements that you specify in a Windows NT or a Windows 95 remote host configuration file to prepare for a connection from a supported local host with the SPX access method:

-no$syntaxcheck
-noterminal
-noxwait

The following example shows how to invoke the PC spawner on a Windows NT remote host:

c:\sas\connect\sasexe\spawner -comamid spx -spxname sasrem -file mysas.cmd

The PC spawner is invoked, and the SPX access method is specified. The -SPXNAME option specifies the name that the PC spawner program uses to communicate with the local host. 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 client session that are used to access a server with the SPX access method:

options comamid=spx;
libname sasdata 'c:\edc\prog2\sasdata' server=share1;

The SPX access method is declared. The LIBNAME statement specifies the data library that is accessed through the server SHARE1.

Server

The following example illustrates the statements that you specify in a configuration file on the Windows host at which you start a server:

-set spxmsgsize 4202

See Setting SAS Options and Variables for details about this option.

The following statements issued in a SAS session on the Windows remote host illustrate how to start a server:

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

The SPX access method is declared for the server SHARE1 that is started on the Windows NT remote host.


Chapter Contents

Previous

Next

Top of Page

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