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 accessing a SAS/SHARE server, perform the following tasks:
  1. For Windows NT only, assign the appropriate rights to each connecting client.

  2. For Windows NT only, set security for connecting clients.

  3. Specify the SPX access method.

  4. Know how to specify a server name.


Assigning the Appropriate Rights for Connecting Clients

CAUTION:
Windows NT only Server security is supported on the Windows NT platform only.  [cautionend]

The account in which a connecting client runs must have the appropriate rights. To assign these rights

  1. Click on the Administrative Tools icon.

  2. Click on the User Manager icon.

  3. From the Policies pull-down menu, select "User Rights."

  4. Click the "Show Advanced User Rights" box.

  5. Assign "Log on as a batch job" rights to the appropriate users.


Setting Security for Connecting Clients

CAUTION:
Windows NT only Server security is supported on the Windows NT platform only.  [cautionend]

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

Server Administrator
CAUTION:
Windows NT Only Server security is supported on the Windows NT platform only.  [cautionend]

To set up a secure server and to make it accessible to a client, perform the following tasks:

  1. Assign the appropriate rights for a secure server for Windows NT only.

  2. Allow only validated clients to access a secure server for Windows NT only.

  3. Set the SPX access method security for Windows NT only.

  4. Specify the SPX access method.


Assigning the Appropriate Rights for a Secure Server

CAUTION:
Windows NT only This process is supported on the Windows NT platform only.  [cautionend]

The account in which a secure server runs must have the appropriate rights. To assign these rights

  1. Click on the Administrative Tools icon.

  2. Click on the User Manager icon.

  3. From the Policies pull-down menu, select "User Rights."

  4. Click the "Show Advanced User Rights" box.

  5. Assign "Act as part of the operating system" rights to the appropriate users.


Setting SPX Access Method Security

CAUTION:
Windows NT only This process is supported on the Windows NT platform only.  [cautionend]

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.