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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1054 views
  • 0 likes
  • 2 in conversation