I have the code below that I am trying to run, but keep getting errors on the where clause. The error is "Syntax error, expecting one of the following: ;, !, !!, &, *, **, +, -, /, <, <=, <>, =, >, >=, AND, EQ, GE, GT, LE, LT, NE, NOT, OR, ^, ^=, |, ||, ~, ~=" Is there something else I can do to get this to work? I'm new to SAS so I'm open to suggestions if this is possible. %let DEAN1A = 1; /* Dean of Arts & Sciences Code (1) */ PROC TABULATE DATA=GRDDIST.&STERM.vpi_secgcat; BY DIV; WHERE DEAN = &DEAN1A.; VAR CAMPUS; CLASS grdcat DPT COURSE name_1 SEC3 / ORDER=UNFORMATTED MISSING; CLASSLEV grdcat; CLASSLEV DPT / STYLE=[OUTPUTWIDTH=1in]; CLASSLEV COURSE / STYLE=[OUTPUTWIDTH=.5in]; CLASSLEV name_1 / STYLE=[OUTPUTWIDTH=2in]; CLASSLEV SEC3 / STYLE=[OUTPUTWIDTH=.5in]; TABLE /* ROW Statement */ DPT={LABEL=""}*COURSE={LABEL=""}*name_1={LABEL=""}*SEC3={LABEL=""}, /* COLUMN Statement */ grdcat={LABEL=""} *(CAMPUS={LABEL=""} * N={LABEL="#" S=[CELLWIDTH=.5in]} CAMPUS={LABEL=""} * RowPctN={LABEL="%" S=[CELLWIDTH=.5in]}*f=pctfmt.) all = 'Total' *(CAMPUS={LABEL=""} * N={LABEL="#" S=[CELLWIDTH=.5in]} CAMPUS={LABEL=""} * RowPctN={LABEL="%" S=[CELLWIDTH=.5in]}*f=pctfmt.) ; ; RUN; QUIT;
... View more