In SAS DIS I have set date parameters on a job. I tried setting the default values using the drop down menu provided, but each time I get the error
Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.
I therefore decided to try to check if the parameter is null before proceeding, but none of my various attempts succeeded. Is there a way to do this with user-written code? Something like
if(&date_param = .) then do;
date = today();
else do;
date = &date_param;
end;
I tried this within a macro and it did not work.
Much Gratitude.