Appriciate if someone of you guide me to resolve the following syntax error. I used the following code as expression in SAS DI studio in order to create the character variable called "PODVERD". Value of NEW_RENEWAL_DAY_MONTH_YEAR_char (character variable), CURRENT_DATE (character variable) will be like "18SEP" and "18SEP2018" respectively
case when NEW_RENEWAL_DAY_MONTH_YEAR_char=REPORTING_DATE_ddmon and KNKATD='7' then PODVERD=REPORTING_DATE_ddmonyyyy
else if (put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2018"),date9.)>CURRENT_DATE then PODVERD=(put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2018"),date9.)
else (put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2019"),date9.)
end
log:
7521 (case when NEW_RENEWAL_DAY_MONTH_YEAR_char=REPORTING_DATE_ddmon and KNKATD='7' then 7521 ! PODVERD=REPORTING_DATE_ddmonyyyy 7522 else if (put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2018"),date9.)>CURRENT_DATE then ____ 22 202 7522 ! PODVERD=(put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2018"),date9.) ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, ), *, **, +, ',', -, '.', /, <, <=, <>, =, >, >=, AND, EQ, EQT, GE, GET, GT, GTT, LE, LET, LT, LTT, NE, NET, NOT, OR, ^, ^=, |, ||, ~, ~=.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
7523 else (put(catt(NEW_RENEWAL_DAY_MONTH_YEAR_char,"2019"),date9.) ____ 22 76 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, >=, ?, AND, BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.
ERROR 76-322: Syntax error, statement will be ignored.
... View more