Chapter Contents

Previous

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

Windows: DECnet Access Method


SAS/CONNECT

Local Host

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

%let rmthost=rhost;
options comamid=decnet remote=rmthost;
signon user=_prompt_;

A macro variable is used to assign the remote host name RHOST to the alias RMTHOST. The OPTIONS statement specifies the DECnet access method and the macro variable RMTHOST as the remote host. The SIGNON statement performs the sign-on process. The USER= option in the SIGNON statement specifies that a client be prompted for a username and a password that are valid on the server.

Remote Host

In order to allow a local host to connect to a Windows NT, Windows 95, Windows 98, or Windows 32s remote host, a PC spawner program must be invoked from the remote host. The spawner program is invoked with the DECnet access method using:

\sas\connect\sasexe\spawner -comamid decnet -file spawnsas.bat;

The SPAWNSAS.BAT file is used to set the configuration on the PC. The SPAWNSAS.BAT file contents is:

@echo off
sas -config config.sas %1 %2 %3 %4 %5 %6 %7 %8

The following example illustrates the configuration file entries for a Windows NT, Windows 95, Windows 98, or Windows 32s remote host:

-no$syntaxcheck
-noterminal
-noxwait


SAS/SHARE

Client

The following example illustrates the statements that you specify in a Windows NT client SAS session to access a server with the DECnet access method:

options comamid=decnet;
libname sasdata 'edc.prog2.sasdata' server=rhost.share1 user=_prompt_;

The COMAMID option specifies the DECnet access method. The LIBNAME statement specifies the data library that is accessed through the node.server-id RHOST.SHARE1. The USER= option in the LIBNAME statement specifies that a client be prompted for a userid and a password that are valid on the server.

Server

The following example illustrates the statements that you specify in a SAS session on the Windows NT host at which you start a server:

%let sassecur=_secure_;
options comamid=decnet;
proc server id=share1;
run;

The value _SECURE_ for the SASSECUR macro variable requires that clients specify a userid and a password that are valid on the server. The DECnet access method is declared, and the server SHARE1 is started on the Windows NT host.


Chapter Contents

Previous

Next

Top of Page

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