Hi-
Can anyone help me with multiple compute statements within Proc Report? I cant seem to get it to work:
I am looking to compute the sum of FCODE within RACE by school. Thank you all!
PROC REPORT NOWD DATA=Q1 OUT=Q1A
NOFS HEADLINE HEADSKIP;
COLUMNS SCHOOLcODE RACE FCODE TOTAL;
DEFINE SCHOOLCODE / GROUP;
DEFINE RACE / DISPLAY;
DEFINE FCODE / DISPLAY;
DEFINE TOTAL/ ANALYSIS SUM;
COMPUTE AFTER SCHOOLCODE;
ENDCOMP;
BREAK AFTER SCHOOLCODE / SUMMARIZE ;
RUN;