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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1257 views
  • 0 likes
  • 2 in conversation