Commands in the autoexec.sas file are read when the SAS program is started and are used to set default configuration options for SAS. Some options are set in the config.sas file which is also read at program invocation.
Users should set their personal values for options in files, say myauto.sas and myconfig.sas, and then ivoke SAS with the command line such as
sas autoexec=myauto.sas config=myconfig.sas
The exact form for the invocation is system/setup dependent.
Here is a sample autoexec file.
/*
Set page and line size for
output
*/
options ps=60 ls=70;
/*
Define some librefs
*/
libname jv 'c:\sas\jv\';
libname gdevice0 'c:\sas\jv';
/*
Set some basic graphics options
so screen output looks like printer
output.
*/
goptions cback=white
colors=(black)
targetdevice=psll
interpol=join
ftext=swiss;
/*
Define some symbols for different
line styles.
*/
symbol1 l=1;
symbol2 l=2;
For further information consult the SAS Programming Companion for the environment in which you run SAS, e.g., Microsoft Windows, UNIX, etc.
Copyright © 1997 by Jerry Alan Veeh. All rights reserved.