BookmarkSubscribeRSS Feed
Markanti
Calcite | Level 5
  1. Create another dataset in the HW library called “three” from “main”.
    1. Add a new variable called totalage where totalage is the sum of dmage and dfage. 
    2. What is the smallest value for totalage. (5 pts)

 

Unfinished Code

*HW 3 - Problem 3;

data ;

run;

proc ;

run;       

proc ;

run;

 

data lab.three;
set lab.main;
totalage = dmage + dfage;
run;

and how to find smallest totalage?

2 REPLIES 2
andreas_lds
Jade | Level 19

I am happy to help, even with homework task, but i except that some efforts are shown. In this case:

  • post the data as working data step, so that we have something to test our code
  • post your ideas ...

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 787 views
  • 0 likes
  • 3 in conversation