I have code like
libname home "C:\My SAS Files\";
libname folder1 "C:\My SAS Files\folder1\";
libname folder2 "C:\My SAS Files\folder2\";
etc...
which I have to run at startup to get my folders up into the system,
is there a way to do this automatically? without manual labor ever time I open SAS?up
If you use PC SAS, please check the attached screenshots. make sure the "enable at startup" is checked.
If you use PC SAS, please check the attached screenshots. make sure the "enable at startup" is checked.
It is also possible (I think) to add these to the config file "SASV9.CFG". You could then copy this file to use on other workstations, etc. and this could be quicker than saving the libs one by one if you have a lot of them. You could also create a program to read a spreadsheet with the libraries/paths and programmatically assign them at the beginning of a program. A compiled macro to do this would be a good idea too.
Good luck!
hi ... if you create a file named AUTOEXEC.SAS in the folder where SAS.EXE is located, all statements in that file are executed at startup
one advantage, you get another PC ... use the same file rather than customizing using SAS windows-based commands
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.