Question: final2023 (1) + X File Edit View 19 * Question 5 20 points Make the following program more general by turning it into a macro

final2023 (1) + X File Edit View 19 * Question 5 20 points Make the following program more general by turning it into a macro called EXTREMEOBS. Use the macro variable DSname to pass the name of the SAS data set to the macro. Use the macro variable InputVariable to replace the WBC Use the macro variable NewDSName to pass the name of the new SAS dataset (replace p99_wbc) to the macro Use these two provided call statements to test your macro NOTE: Reminder that a macro variable must have a period follwing it if there is not a blank space after the name. For example, a macro variable called &month would need to have a period following it if it were to replace the month May in a variable named May_2023 (&month. _2023); title 'Values of woc >= the 99th percentile'; proc means data=cb. blood noprint; var wbc; output out=p99_obs (drop = _type_ _freq_) p99 = /autoname; run; data p99_wbc; set cb. blood; f _n_ = 1 then set p99_obs; if wbc >= wbc_p99 then output; run; proc print data=p99_wbc; run; Ln 32, Col 29 100% Windows (CRLF) UTF-8 490 Q Search P W X 200m A E (x O 11:35 AM 5/3/2023 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
