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 ....;

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 491 views
  • 1 like
  • 2 in conversation