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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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