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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 549 views
  • 1 like
  • 2 in conversation