cant seem to get this to work .. tried a few different ways and get get different errors .
452 proc tabulate data=q2;
453 class country;
454 var parcid payment costprice;
455
456 table country all,
457 parcid*n
458 payment*sum
459 costprice*sum
460 payment-costprice*sum;
-
22
---------
202
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, (, *, ',',
/, <, =, [, {.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
461
Hi,
Is this helpful?
proc tabulate data=sashelp.class;
class sex;
var height weight age;
table (sex all)*(height weight age)*(sum n);
run;
Linlin
no, i need to subtract: payment-costprice
I don't think you can do that in proc tabulate, ie create a new variable, you'll need either proc report or a datastep.
I typically prefer a datastep but it's up to you.
i also dont think you can . but my prof. taught us today that you can, but his example does not work ....
Then ask your prof to clarify or call Tech Support, they'll know the answer immediately.
FYI- you were correct !
shame that when i said it in class he did not listen to me . have a good day and thanks ! CL
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!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.