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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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