Hi...I am trying to do a loop from one date to another but I am getting the following error message 22-322...any suggestions how to correct this...Thanks.
269 DATA K;
270 do date=&FROMYEAR7 to &TOYEAR7;
NOTE: Line generated by the macro variable "FROMYEAR7".
270 01JAN1900
_______
22
NOTE: Line generated by the macro variable "TOYEAR7".
270 31DEC2100
_______
22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -,
/, <, <=, <>, =, >, ><, >=, AND, BY, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE,
NG, NL, NOTIN, OR, ^=, |, ||, ~=.
271 if date= &FROMYEAR7 then do;
NOTE: Line generated by the macro variable "FROMYEAR7".
271 01JAN1900
_______
388
76
ERROR 388-185: Expecting an arithmetic operator.
ERROR 76-322: Syntax error, statement will be ignored.
... View more