Question: Run the program below in the Unfinished Code section, which creates Dates in the HW library. You will need to change the input statement to

Run the program below in the Unfinished Code section, which creates Dates in the HW library. You will need to change the input statement to account for the format of the raw data. Add the following to this data step: (8 pts)
a. Using the yrdif function to add a variable called Agetoday, which is the age today.
b. Use proc print to list all the variables in the results window.
c. Remember to format all dates for output purposes.
*HW 2- Problem 2;
data HW.dates;
input Subj $ DOB ;
datalines;
00111Nov06
00225May07
00325Dec06
;
run;
proc;
run;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!