11-07-2012 07:21 PM
Is it possible to configure SAS to open up a .sas file when starting up SAS so that it displays the code (as opposed to running code when opening SAS)? We're creating SAS templates (Header, layout, etc.) that we want to be visible to users when they open SAS.
11-07-2012 08:54 PM
Do you mean rather than open up to a blank editor it should open up a template file that contains header/layout that a programmer should follow?
Could you add that into the autoexec maybe?
11-08-2012 05:14 AM
you should change the default action assigned to the .sas files.
Default action is actually not defined during the SAS installation so the first one (Batch903) is taken.
(Default): (no value) --> OpenwithSAS903
11-20-2012 11:23 AM
If your need is to open a SAS script during Base SAS startup, create a SAS script with the name autoexec.sas and place it at
'C:\Program Files\SAS\SAS 9.1' if 9.1.3 and or on the home directory of the version installed. SAS will automatically pick it up.
To check the default autoexec location, use proc options option=autoexe;run;
You can also add this autoexec option in the C:\Program Files\SAS\SAS 9.1\nls\en\sasv9.cfg'.