libname clinic '/home/mdoddala0';
data clinic.admit7;
set clinic.weightclub;
proc tabulate data=clinic.admit7;
class team;
var startweight endweight;
table team*(startweight endweight),mean;
run;
run;
Here is the code to create the weightclub dataset
input IdNumber 1-4 Name $6-20 Team $22-27 StartWeight 29-31 EndWeight 33-35;
Loss=StartWeight-EndWeight;
cards;
1023 David Shaw red 189 165
1049 Amelia Serrano yellow 145 124
1219 Alan Nance red 210 192
1246 Ravi Sinha yellow 194 177
1078 Ashley McKnight red 127 118
;
run;
Hi,
Try this
proc tabulate data=clinic.admit7;
class team;
var startweight endweight;
table team,(startweight endweight)*mean;
run;
still getting the errors:(
A SAS data step must end with a RUN; command. Look at the code you've posted. Something is off there.
I think it ended with a run; statement
libname clinic '/home/mdoddala0';
data clinic.admit7;
set clinic.weightclub;
proc tabulate data=clinic.admit7;
class team;
var StartWeight EndWeight;
table team,(StartWeight EndWeight)*mean;
run;
data weightclub;
input IdNumber 1-4 Name $6-20 Team $22-27 StartWeight 29-31 EndWeight 33-35;
Loss=StartWeight-EndWeight;
cards;
1023 David Shaw red 189 165
1049 Amelia Serrano yellow 145 124
1219 Alan Nance red 210 192
1246 Ravi Sinha yellow 194 177
1078 Ashley McKnight red 127 118
;
run
Please don't post the same question twice.
Answers here: https://communities.sas.com/t5/SAS-Programming/How-do-I-solve-the-errors/m-p/536113#M147292
I suggest you delete your post here.
I couldn't find an option to delete
@Patrick Sir, this is what I'm seeing
ok - then I also don't know how you could delete the whole post. Just leave it then.
Haha alright sorry for any inconvenience:(
I merged the threads.
Please do not double-post.
please mark you questions as solved to close the thread. Be kind and do leave things behind.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.