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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

From SAS Users blog
Want more? Visit our blog for more articles like these.
5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 294 views
  • 0 likes
  • 2 in conversation