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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1146 views
  • 0 likes
  • 2 in conversation