Chapter Contents |
Previous |
Next |
SAS Companion for UNIX Environments |
Note: Before you start your SAS session, review the
different methods for interrupting and terminating your SAS session (see Interrupting or Terminating Your SAS Session). Also, if you
cannot stop your session, contact your system administrator; do not turn off
your machine, especially if your machine is part of a network.
Starting a SAS Session |
The command that you use to invoke your SAS session is defined during the
SAS installation process and is added to the list of commands that are recognized
by the operating environment. Ask your system administrator what the command
is that invokes SAS at your site. At many sites, the command to invoke SAS
is simply
sas
, but a different
command may have been defined during the SAS installation process at your
site. This book assumes that the SAS System is invoked by the
sas
command.
The general form of the SAS command is as follows:
sas <-option1...-option-n> <filename> |
You can use these arguments with the SAS command:
If the file is in your current directory and has a
.sas
extension, you can omit its extension. If the file is not in
the current directory, specify its full pathname.
For example, to invoke an interactive SAS session, without specifying any SAS system options, enter
sas
The execution mode will depend on your default settings.
To specify the NODATE and LINESIZE system options, you could enter
sas -nodate -linesize 80
To run a SAS program and pass parameters to it, enter
sas -sysparm 'A B C' progparm.sasThe value
A B C
is assigned to the
SYSPARM macro variable, which can be read by the program
progparm.sas
.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.