BookmarkSubscribeRSS Feed
YangYY
Quartz | Level 8

Hi, I got a supplement data and I know I can upload it into sas file.

Now I want to modify the data but I don't know how to use it because normally the data set would be stored in library.

 

Can anyone give me an example code?

Thank you

4 REPLIES 4
YangYY
Quartz | Level 8
The supplement data is something.sas7bdat.
andreas_lds
Jade | Level 19

Assigning a libref to the directory in which the file is stored should solve the issue.

YangYY
Quartz | Level 8
Thank you for your reply.
I am a beginner so could you please give me an example and code to show me?
I will be grateful 🙂
Kurt_Bremser
Super User

Suppose you have a file

xx.sas7bdat

in directory

/level1/level2/level3

then you would do

libname mylib '/level1/level2/level3';

proc print data=mylib.xx;
run;

to run a simple procedure against this dataset.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 4 replies
  • 1770 views
  • 0 likes
  • 3 in conversation