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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.