I am trying to run the following case statement in SAS but keep getting an error: ,CASE WHEN ((MM,&EOY.) - (MM,Start_Date)) > Term_Length__months_ THEN 'Term_Length__months_' ELSE ((MM,&EOY.) - (MM,Start_Date)) END AS Flow_Months_2019 ,CASE WHEN ((MM,&EOY.) - (MM,Start_Date)) > Term_Length__months_ THEN '0' ELSE Term_Length__months_ - ((MM,&EOY.) - (MM,Start_Date)) END AS Flow_Months_Contract ERROR 79-322: Expecting a (. 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, ^, ^=, |, ||, ~, ~=.
... View more