Chapter Contents

Previous

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

OS/2: APPC Access Method


SAS/CONNECT

Local Host

The following example illustrates the statements that you specify in an OS/2 local host SAS session to connect to a remote host with the APPC access method.

options comamid=appc remote=remotelu;
options set=appc_lu62mode appcmode;
signon user=_prompt_ ;

The APPC communications access method is declared with a connection to the remote host REMOTELU that uses a mode name of APPCMODE. The SIGNON statement performs the sign-on process. The USER= option in the SIGNON statement specifies that a connecting local host be prompted for a username and a password that are valid on the remote host.

Remote Host

The following example illustrates the statements that you specify in an OS/2 remote host configuration file to prepare for a connection from a supported local host with the APPC access method.

-dmr
-comamid appc
-remote remotelu
-no$syntaxcheck
-noterminal

The APPC communications access method is declared with a connection to an OS/2 remote host that is identified as control-point LU REMOTELU.

Note:   The value of the REMOTE= option that is specified in both the local and remote sessions must be identical.  [cautionend]


SAS/SHARE

Client

The following example illustrates the statements that you specify in an OS/2 client configuration file to access a server with the APPC access method:

-comamid appc
-set appc_lu62mode appcmode

The APPC communications access method is declared. The APPC_LU62MODE variable is set to APPCMODE.

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

The APPC access method is declared. The LIBNAME statement specifies the data library that is accessed through the server SHARE1. The USER= option in the LIBNAME statement specifies that a connecting local host be prompted for a username and a password that are valid on the remote host.

Server

The following example illustrates the statements that you specify in a configuration file on the OS/2 host at which you start a server:

-comamid appc

The APPC communications access method is declared.

The following example illustrates the statements that you specify in a SAS session on the OS/2 remote host at which you start a server:

proc server id=share1;
run;

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.