BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I read in the SAS help documentation about how to create permanent data sets but I'm very confused. My operating system is Windows XP and I usually store my data sets in the desktop directory. I'm trying to use the corr statement,

ods graphics on;
proc corr data=sashelp.cars;
var enginesize weight;
with mpg_city mpg_highway;
run;
ods graphics off;

I know that we are using the variables from the sashelp.cars data set. But I want to use the variables from a sas data set that I stored in my desktop. How can I make reference to my data set,

proc corr data=???;

in other words, how can I tell SAS that the data set I want to use is stored in my desktop and it's called let's say lossdata.
2 REPLIES 2
rab24
Calcite | Level 5
libname desktop "C:\Documents and Settings\username\Desktop\";

proc corr data=desktop.lossdata;
deleted_user
Not applicable
Thank you!

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1391 views
  • 0 likes
  • 2 in conversation