Could you please guide me to overcome this syntax error?
data have; input renewal_date $; datalines; 15jun 11sep 14sep 02jan ; run;
data want; set have; if input(cats(renewal_date,"2018"),date9.) > today()) then new_renewel_date=input(cats(renewel_date,"2019"),date9.); else renewel_date=input(cats(renewal_date,"2018"),date9.); run;
26 data have;
27 input renewal_date $;
28 datalines;
NOTE: The data set WORK.HAVE has 4 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
33 ;
34 run;
35
36
37 data want;
38 set have;
2 The SAS System 13:51 Monday, September 17, 2018
39 if input((cats(renewal_date,"2018"),date9.) > today()) then new_renewel_date=input(cats(renewel_date,"2019"),date9.);
_ _
79 22
200
40 else renewel_date=input(cats(renewal_date,"2018"),date9.);
____
160
ERROR 79-322: Expecting a ).
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT,
IN, LE, LT, MAX, MIN, NE, NG, NL, NOT, NOTIN, OR, THEN, ^, ^=, |, ||, ~, ~=.
ERROR 200-322: The symbol is not recognized and will be ignored.
ERROR 160-185: No matching IF-THEN clause.
41 run;
... View more