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 ...

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 517 views
  • 0 likes
  • 3 in conversation