Unfinished Code
*Lab 12 – Problem 1;
data
run;
proc
run;
I got correct for this.
%let list = dbirwt nprevist wtgain;
data four;
set lab.main;
keep &list;
run;
title "Using a Macro variable list";
proc means data=four mean;
var &list;
run;
but for 2nd problem I am getting error
Unfinished Code
*Lab 12 – Problem 2;
proc
run;
my finished code is
title "Using a Macro variable list";
proc means data=lab.four noprint;
var &list;
run;
but I am getting error as
Use the OUTPUT Statement of PROC MEANS to create a dataset.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.