Chapter Contents

Previous

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

OS/2: 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 an OS/2 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 SASUSER and SASPASS SAS environment variables allow the userid and the password to be passed to the remote PC spawner, which permits a connection. Two environment variables are set; see SAS/CONNECT and SAS/SHARE SPXMSGSIZE Option for details. The SPX access method is declared with a connection to the remote host SASREM, which is the name of the network that is specified in the -SPXNAME option to the PC spawner invocation. The SIGNON statement performs the sign-on process.

Remote Host

An example for invoking the PC spawner is invoked on an OS/2 remote host follows:

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

The spawner is invoked, and the SPX access method is specified. The -SPXNAME option specifies the name of the network 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 about executing the PC spawner. Options that are set through the spawner override options that are set in a remote host configuration file.


SAS/SHARE

Client

The following example illustrates the statements that you specify in an OS/2 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 OS/2 host at which you start a server:

-set spxmsgsize 4202

See SAS/CONNECT and SAS/SHARE SPXMSGSIZE Option for details about this option.

The following statements used in a SAS session on the OS/2 remote host start a server:

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

The SPX access method is declared for server SHARE1 that is started on the OS/2 remote host.


Chapter Contents

Previous

Next

Top of Page

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