BookmarkSubscribeRSS Feed
ablo
Fluorite | Level 6

libname clean "C:\Users\taran\Documents\SaSUniversityEdition\myfolders ";
data clean.patients;
infile " C:\Users\taran\Documents\SaSUniversityEdition\myfolders\patients.txt " truncover /* take care of problems
with short records */;
input @1 Patno $3.
@4 Gender $1.
@5 Visit mmddyy10.
@15 Hr 3.
@18 SBP 3.
@21 DBP 3.
@24 Dx $3.
@27 AE $1.;
LABEL Patno = "Patient Number"
Gender = "Gender"
Visit = "Visit Date"
HR = "Heart Rate"
SBP = "Systolic Blood Pressure"
DBP = "Diastolic Blood Pressure"
Dx = "Diagnosis Code"
AE = "Adverse Event?";
format visit mmddyy10.;
run;

3 REPLIES 3
SuryaKiran
Meteorite | Level 14

Hello,

 

What does your log say, is the libname assigned successfully. 

 

26         libname clean "C:\Users\taran\Documents\SaSUniversityEdition\myfolders ";
NOTE: Library CLEAN does not exist.

Is your log showing this? Then it is clear, that path doesn't exists. Are you trying to read a file in SAS University Editon, then the path you provided is not the right one. You have to use /folders/myfolders/

 

Check this link for more details: https://support.sas.com/software/products/university-edition/faq/shared_folder_access.htm

 

Please post your programs and log in the right place. 

image.png

Thanks,
Suryakiran
ablo
Fluorite | Level 6
Hi,

The log says library clean does not exist.
I am using SAS University Edition.

Thanks

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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