Question: Rewrite the following program using %LET to assign the starting and ending values of the DO loop to macro variables. Be sure these values also
Rewrite the following program using %LET to assign the starting and ending values of the DO loop to macro variables. Be sure these values also print in the PROC PRINT output.
data sqrt_table; do n = 1 to 5; Sqrt_n = sqrt(n); output; end; run; title "Square Root Table from 1 to 5"; proc print data=sqrt_table noobs; run; |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
