BookmarkSubscribeRSS Feed
cjacks21
Calcite | Level 5

Hello,

 

I have an existing SAS data set that entered into SAS, I use the data statement, merged columns, and modify columns, and more which created temporary files in the work folder. Now I need to output the new SAS data set to use to run in proc mixed. My first question is how can I output the new SAS data set and keep in SAS? Next, how can I then important it into a new SAS file using libname? I need an example.

1 REPLY 1
Reeza
Super User
Seems like your data set is already created but in your work folder. That means you can use it directly in proc mixed, nothing further is required. To save it to a permnanet library create your library and move the file there.

libname myFiles '/folders/myfolders/';

data myFiles.class; *output data set - saved to myFiles library;
set sashelp.class; *input data set;
run;

*use it later in proc mixed;

proc mixed data=myFiles.class ....;