Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Using SAS System Options

You can use SAS system options to change the destination of the SAS log and procedure output. The options that you use depend on which task you want to accomplish:

LOG and PRINT are normally used in batch and interactive line modes. These system options have no effect in the windowing environment. If you are running in the windowing environment, use the ALTLOG and ALTPRINT system options.

You can specify the options in the SAS command, a configuration file, and the SASV7_OPTIONS environment variable. For example, you could specify these options in the SAS command as follows:

sas -log '/u/myid/log' -print '/u/myid/prt'
sas -altlog '/u/myid/log' -altprint '/u/myid/prt'
See Specifying System Options for more information.


Creating Postscript Output

You can use the pstext UNIX command, the PRINTCMD and SYSPRINT system options, and the PRINT command to create PostScript output. The PRINTCMD option sets the UNIX print command that SAS will use, and the SYSPRINT option specifies a destination.

You can use the pstext command as your print command and redirect or pipe the output of that command. For example, the following options send your output through the pstext command and then redirect the output of that command to the file named /tmp/file.ps:

options printcmd='pstext';
options sysprint='>/tmp/file.ps';
When you issue the PRINT command, SAS creates the file /tmp/file.ps.

The following options send your output through the pstext command and then pipe the output of that command to the lp command:

options printcmd='pstext';
options sysprint='| lp -dmylaserjet';
When you issue the PRINT command from within SAS, postscript output is sent to the mylaserjet printer.


Chapter Contents

Previous

Next

Top of Page

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