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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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