Chapter Contents

Previous

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

SAS/SHARE


Client Tasks

User or Applications Programmer
To prepare for creating and accessing a SAS/SHARE server, you must know how to:
  1. Specify the SPX access method.

  2. Specify a server name.


Specifying the SPX Communications Access Method

Specify the SPX communications access method at each connecting client before you access a server. Use the following syntax:

OPTIONS COMAMID=access-method-id;

where COMAMID is an acronym for Communications Access Method Identification. access-method-id is an abbreviation for the method used by the client to communicate with the server. SPX (an acronym for Sequenced Packet Exchange) is an example of an access-method-id.

Example:

options comamid=spx;

The server is accessed using the SPX access method.

You may specify the COMAMID option in an OPTIONS statement, at a SAS invocation, or in a SAS configuration file.

Additionally, you may use the COMAUX1 and COMAUX2 options to designate auxiliary communications access methods. See SAS/CONNECT and SAS/SHARE: Supported Access Methods According to Host Release for the supported access methods by host. If the first method fails to access a server, the second method is attempted, and so on. You can specify up to two auxiliary access methods, depending on the number of methods that are supported between client and server hosts.

COMAUX options can be specified only at a SAS invocation or in a SAS configuration file. The syntax for the COMAUX options follows:

-COMAUX1 alternate-method
-COMAUX2 alternate-method

An example of configuration file entries for an OS/2 client connecting to an OS/2 server follows:

-comamid spx
-comaux1 tcp
-comaux2 netbios

If the server cannot be reached using the SPX method, a second attempt is made with the TCP/IP access method. Finally, if necessary, the NetBIOS method is used.


Specifying a Server Name

You must specify the server's identifier in the PROC OPERATE and LIBNAME statements as follows:

SERVER=identifier

Select the name that you want for a server, following standard SAS naming rules. See SAS Language Reference: Dictionary for details about SAS naming rules. See SAS/SHARE User's Guide for details about the PROC OPERATE and LIBNAME statements.

Example:

server=share1


Client Example

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 Tasks

Server Administrator
To make a server accessible to a client, perform the following tasks:
  1. Specify the SPX access method as the server.

  2. Specify the server name.


Specifying the SPX Access Method at the Server

Specify the SPX access method at the server before you create a SAS/SHARE server. Use the following syntax:

OPTIONS COMAMID=access-method-id;

where COMAMID is an acronym for Communications Access Method Identification. access-method-id is an abbreviation for the method used by the server to communicate with the client. SPX (an abbreviation for the Novell Sequenced Packet Exchange) is an example of an access-method-id.

For a server that is running on a host on which only one communications access method is available, use only the COMAMID option.

You may specify the COMAMID option in an OPTIONS statement, at a SAS invocation, or in a SAS configuration file.

However, if the host on which a server is running supports multiple access methods, you may specify up to two auxiliary access methods by which clients may access the server. See SAS/CONNECT and SAS/SHARE: Supported Access Methods According to Host Release for the supported access methods by host.

All of the access methods initialize when the server initializes. The activation of multiple access methods makes a server available to several groups of clients, each using a different communications access method simultaneously.

COMAUX options can be specified only at a SAS invocation or in a SAS configuration file. The syntax for the COMAUX option follows:

-COMAUX1 alternate-method
-COMAUX2 alternate-method

An example of configuration file entries for an OS/2 client connecting to a Windows NT server follows:

-comamid spx
-comaux1 tcp
-comaux2 appc

When the server starts, all of the communications access methods are initialized. The server is simultaneously available to client sessions that use the SPX access method as well as to clients that use the TCP/IP and APPC access methods.


Specifying the Server Name

You must specify the server identifier in the PROC SERVER statement as follows:

SERVER=identifier

Select the name that you want for a server, following standard SAS naming rules. See SAS Language Reference: Dictionary for details about SAS naming rules. See the SAS/SHARE User's Guide for details about the PROC SERVER statement.

Example:

server=share1


Server Example

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 in a SAS session on the OS/2 remote host illustrate how to start a server:

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

The SPX access method is declared, and the server SHARE1 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.