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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.