Chapter Contents

Previous

Next
SAS/CONNECT User's Guide

Basic Script Functions

A script can be a simple, short program or a long, complex program depending on what you want the script to do. All scripts must do at least three things:

  1. invoke the SAS System on the remote host (by using the SAS command).

  2. set the appropriate communications options for the remote SAS session in the SAS command. On the remote host, the script sets the COMAMID= and DMR system options.

  3. determine when the remote SAS session is ready for communications with the local SAS session. In most cases, the script waits for messages from the remote SAS session.

Most scripts also perform a number of other optional functions. For example, they may

The sample scripts from SAS Institute perform all of these functions. By studying their contents, you can learn how to use script statements to do these things.

Note:   Scripts that log on to the remote host include information that is specific to the computing installation. They may need minor modifications to work with your logon sequence.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

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