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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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