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;
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.
Please work through the tutorials for University Edition. All your issues are covered there.
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →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.