BookmarkSubscribeRSS Feed
samlq4
Calcite | Level 5

I am having trouble figuring out why the code is not creating a libname. This is the code that was given to us by the professor.

title1 "Part 2, Question 4";

 

/* Create a library called HEARTLIB. USER MUST SPECIFY the folder path below where the MYHEART dataset is to be stored, it will be different than this path */

libname heartlib "/home/u63427874/HeartLib";

 

data heartlib.myheart;

set heart2;

if nmiss(ageatstart, cholesterol, diastolic, Height, MRW, Smoking, Systolic,

     Weight) = 0 and

   cmiss(bp_status, chol_statusnew, smoking_statusnew, weight_statusnew) = 0 then output;

run;

 

proc freq data=heartlib.myheart;

tables _character_ / missing;

run;

 

proc means data=heartlib.myheart nmiss;

var _numeric_;

run;

1 REPLY 1
Kurt_Bremser
Super User

Hi and welcome to the communities!

Please post the log, so we can see what goes wrong. Copy/paste the log text into a window opened with this button:

Bildschirmfoto 2020-04-07 um 08.32.59.jpg