DATA Step, Macro, Functions and more

Creating a permanent database

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

Creating a permanent database

Greetings all.

 

This is my first time using SAS and hoping to learn a lot from it. I have experience from using databases before (Access mainly) and I'm having a hard time trying to figure out how to make the data permanent that I set up in the process flow. Like for example I'll import two excel files and append them together and save the project, however the data is only saved in a temporary folder from my understanding. Thus when I open the project again, I have to run the entire thing over again in order to have appended data table made. I've read that you can make the data permanent but am unable to figure out how to do so.

 

I'm running SAS EG 7.1, on OS Windows 7, and from my understanding I log into the software to connect to a server my company has set up, and I am positive I have my own folder. If any more information is needed let me know, thanks!


Accepted Solutions
Solution
‎10-22-2015 07:59 PM
Super User
Posts: 19,869

Re: Creating a permanent database

[ Edited ]
  1. Create a library, in this example called PERM. A library is a reference to a particular directory
libname perm 'C:\temp\my_sas_datasets';

 

2.  Move the data to the permanent library, or save it directly there in your process flow. You can modify your final process/task to save the output directly to the library, or you can use a TASK under DATA. 

 

 

Data perm.final;
    set my_data;
run;

 

 

In the future you may want to post this under Business Intelligence>SAS Enterprise Guide for EG specific questions. 

View solution in original post


All Replies
Solution
‎10-22-2015 07:59 PM
Super User
Posts: 19,869

Re: Creating a permanent database

[ Edited ]
  1. Create a library, in this example called PERM. A library is a reference to a particular directory
libname perm 'C:\temp\my_sas_datasets';

 

2.  Move the data to the permanent library, or save it directly there in your process flow. You can modify your final process/task to save the output directly to the library, or you can use a TASK under DATA. 

 

 

Data perm.final;
    set my_data;
run;

 

 

In the future you may want to post this under Business Intelligence>SAS Enterprise Guide for EG specific questions. 

Super User
Posts: 5,438

Re: Creating a permanent database

There is a library called SASUSER, that is for personal use. For some sites, this defined as R/O.

If have quite large data sets, it is better to keep them on the server. For the possibility to use SASUSER, or create a server library for you, contact your SAS server administrator.

Data never sleeps
🔒 This topic is solved and locked.

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

Discussion stats
  • 2 replies
  • 238 views
  • 1 like
  • 3 in conversation