Customising the SAS startup

Accepted Solution Solved
Reply
Contributor
Posts: 71
Accepted Solution

Customising the SAS startup


I want to submit the statement ods path work.mystore(update) sashelp.tmplmst(read); when I invoke SAS so I can modify templates temporarily. I tried to include it in the configuration file sasv9.cfg but it doesn't work. Could I get some suggestions as to how I can achieve this?

I use SAS 9.3 M1 x64 on Windows 7 Pro.

Thanks!


Accepted Solutions
Solution
‎08-31-2012 10:05 PM
Respected Advisor
Posts: 4,173

Re: Customising the SAS startup

Posted in reply to PaigeMiller

Beginning with version 9.2 SAS installs with a set of config files and autoexecs which are not meant to be modified. It says clearly in the header of such files:

*    Do NOT modify this file.  Any additions or changes should be made in autoexec_usermods.sas.

So if you change the standared autoexec and config files don't complain if the next patch or upgrade simply wipes out all of your modifications.

You can always add site specific modifications to the "usermods" versions or even create additional files.

View solution in original post


All Replies
Respected Advisor
Posts: 4,173

Re: Customising the SAS startup

Don't change config and autoexec files if the name does not contain "usermods".

If you're usin SAS EG then define it best as code to be run when you open the project (that's done in EG).

Else: You could put your code into a usermods autoexec if you must.

Trusted Advisor
Posts: 1,931

Re: Customising the SAS startup

PTD_SAS wrote:


I want to submit the statement ods path work.mystore(update) sashelp.tmplmst(read); when I invoke SAS so I can modify templates temporarily. I tried to include it in the configuration file sasv9.cfg but it doesn't work. Could I get some suggestions as to how I can achieve this?

Very simple ... put it in your AUTOEXEC file. You may want to create a custom CONFIG file and AUTOEXEC file so the original remains unchanged.

Solution
‎08-31-2012 10:05 PM
Respected Advisor
Posts: 4,173

Re: Customising the SAS startup

Posted in reply to PaigeMiller

Beginning with version 9.2 SAS installs with a set of config files and autoexecs which are not meant to be modified. It says clearly in the header of such files:

*    Do NOT modify this file.  Any additions or changes should be made in autoexec_usermods.sas.

So if you change the standared autoexec and config files don't complain if the next patch or upgrade simply wipes out all of your modifications.

You can always add site specific modifications to the "usermods" versions or even create additional files.

Contributor
Posts: 71

Re: Customising the SAS startup

Thanks to all for the answers, autoexec_usermode.sas did the trick.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 404 views
  • 0 likes
  • 3 in conversation