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: 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 Problem ;
data HWdates;
input Subj $ DOB ;
datalines;
Nov
May
Dec
;
run;
proc;
run;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
