BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
skipper
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
Linlin
Lapis Lazuli | Level 10

If  you use PC SAS, please check the attached screenshots. make sure the "enable at startup" is checked.


part2.pngcreate per. library.png

View solution in original post

3 REPLIES 3
Linlin
Lapis Lazuli | Level 10

If  you use PC SAS, please check the attached screenshots. make sure the "enable at startup" is checked.


part2.pngcreate per. library.png
RickM
Fluorite | Level 6

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!

MikeZdeb
Rhodochrosite | Level 12

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 6961 views
  • 7 likes
  • 4 in conversation