Defining SAS library names in Enterprise Guide 3.0

Now let us turn to another topic that is actually closely related to EG binders. When you frequently work with several data folders/SAS libraries, it is useful to have the SAS library references assigned automatically at the beginning of each EG session. This way, you do not have to define these references every time you create a new SAS program in EG 3.0. Just like with EG binders, it takes an EG administrator to set up automatic library assignments at start-up. But the good news is that there is a simple way to have SAS library references assigned automatically from within EG 3.0.

First, you need to go to the Tools menu and select Options. This will take you to the Options window that lists all EG setting. Now select SAS Programs at the bottom of the list and find the Insert custom SAS code before submitted code check box. Click the Edit button and define SAS library references for frequently used libraries:

libname favorite ‘c:\My favorite projects’;

Save the references, check the box and click the OK button at the bottom of the window. EG will update the settings and you can refer to the libraries you have just defined in any of your SAS programs submitted in the EG environment.