dear SAS experts,
I typed:
proc report data=class;
column name age;
define name / display;
define age / display;
compute age;
if age < 65
then call define (_row_,'style' compute,'style=[background=lightblue]');
endcomp;
run;
and got the following error message:
1 if age < 65 then call define (_row_,'style' compute,'style=[background=lightblue]');
_______
22
______
2 The SAS System 16:33 Wednesday, April 28, 2021
253
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE,
GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.
ERROR 253-185: The DEFINE subroutine call has too many arguments.
how should I correct the error?
thx,
regards
PY