Chapter Contents |
Previous |
Next |
Communications Access Methods for SAS/CONNECT and SAS/SHARE Software |
Client Tasks |
Assigning the Appropriate Rights for Connecting Clients |
The account in which a connecting client runs must have the appropriate rights. To assign these rights
Setting Security for Connecting Clients |
If you set the SASSECUR option at the client, specify a userid and a password that are valid on the server. For information about setting the SASSECUR option, see SAS/SHARE SASSECUR Option.
Specifying the SPX Access Method |
You must specify the SPX access method at each connecting client before you can 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 identifies the method used by the client to communicate with the server. SPX (an abbreviation for Sequenced Package 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 option follows:
-COMAUX1 alternate-method -COMAUX2 alternate-method
An example of configuration file entries for a Windows NT client connecting to a Windows NT server follows:
-comamid spx -comaux1 tcp -comaux2 netbios
If the server cannot be reached with the SPX access method, a second attempt is made with the TCP/IP access method, and then with the NetBIOS method.
Specifying a Server Name |
You must specify the server name in the LIBNAME and the PROC OPERATE statements. Use the following syntax:
SERVER=server-id
Follow standard SAS naming rules when defining a server name. See SAS Language Reference: Concepts for details about SAS naming rules. See SAS/SHARE User's Guide for details about the LIBNAME and PROC OPERATE statements.
Client Example |
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 Tasks |
To set up a secure server and to make it accessible to a client, perform the following tasks:
Assigning the Appropriate Rights for a Secure Server |
The account in which a secure server runs must have the appropriate rights. To assign these rights
Setting SPX Access Method Security |
Before you can create a secure SAS/SHARE server, you must make the access method secure by assigning the _SECURE_ value to the SASSECUR option. See SAS/SHARE SASSECUR Option for information about setting the SASSECUR option.
Specifying the SPX Access Method at the Server |
You must specify the SPX communications access method before you can create and access a SAS/SHARE server.
Use the following syntax to specify the SPX access method at the server:
OPTIONS COMAMID=access-method-id;
where COMAMID is an acronym for Communications Access Method Identification. access-method-id identifies the method used by the server to communicate with the client. SPX (an abbreviation for 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.
Example:
options comamid=spx;
The server will be available only to SAS/SHARE sessions that use the SPX access method.
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 running supports multiple access methods, you may specify up to two auxiliary access methods by which clients may access the server using the COMAUX1 and COMAUX2 options. 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 a server that is running on an Windows NT host follows:
-comamid spx -comaux1 tcp -comaux2 netbios
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 NetBIOS access methods.
Specifying a Server Name |
You must specify the server name in the PROC SERVER statement. Use the following syntax:
SERVER=server-id
Follow standard SAS naming rules when defining a server name. See SAS Language Reference: Concepts for details about SAS naming rules. See SAS/SHARE User's Guide for details about the PROC SERVER statement.
Server Example |
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 SAS/CONNECT and SAS/SHARE Option 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. The additional options in the PROC SERVER statement allow only validated clients to access the server.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.