Chapter Contents

Previous

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

Windows: NetBIOS Access Method


SAS/CONNECT

Local Host

The following example illustrates the statements that you specify in a Windows local host SAS session to connect to a remote host with the NetBIOS access method:

options set=vqmlinks 3 set=vqmconvs 3;
options comamid=netbios remote=sasrem;
signon;

This example assumes a connection to a PC spawner that is running in secure mode. Two options are set (see SAS/CONNECT and SAS/SHARE Options for details). The NetBIOS communications access method is declared with a connection to the remote host SASREM. SASREM is the name that is specified in the -NETNAME option that the PC spawner uses to communicate with the local host. The USER= option to SIGNON specifies that the connecting local host be prompted for a userid and a password that are valid on the remote host. The SIGNON statement performs the sign-on process.

Remote Host

The following example illustrates the statements that you specify in a Windows NT, a Windows 95, or a Windows 98 remote host configuration file to prepare for a connection from a supported local host with the NetBIOS access method:

-no$syntaxcheck
-noterminal
-noxwait

An example follows of how the PC spawner is invoked on a Windows NT, a Windows 95, or a Windows 98 remote host:

c:\sas\connect\sasexe\spawner -comamid netbios -netname sasrem 
                              -file mysas.cmd

The spawner is invoked and the NetBIOS access method is specified. The -NETNAME option specifies the name of the network (SASREM) 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 executing the PC spawner. Options that are set through the spawner may override options that are set in a remote host configuration file.


SAS/SHARE

Client

The following example shows the statements that are specified in a Windows NT client session:

options comamid=netbios;
libname sasdata 'c:\edc\prog2\sasdata' user=_prompt_ server=share1;

The NetBIOS access method is declared. The LIBNAME statement specifies the data library that is accessed through the server SHARE1. The USER= option in the SIGNON statement specifies that the client be prompted for a userid and a password that are valid on the server SHARE1.

Server

Specify the following statements in a SAS session on the Windows NT remote host to start a server:

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

The first line uses the SAS macro variable SASSECUR to prompt clients for a userid and a password that are valid on the server. The NetBIOS access method is declared for the server SHARE1 that is started on a Windows NT remote host.


Chapter Contents

Previous

Next

Top of Page

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