Hi Tom, I tried your code and here's the following syntax I'm seeing- PROC SQL;
45 SELECT 'APPLICATION SCORE'n
46 case
____
22
76
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &, (, *, **, +, ',', -, '.', /, <, <=, <>, =,
>, >=, ?, AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE,
LEN, LENGTH, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.
ERROR 76-322: Syntax error, statement will be ignored.
47 when ('application score'n>41) then 'A'
48 when ('application score'n>30) then 'B'
49 when ('application score'n>20) then 'C'
50 else 'D'
51 end
52 AS Credit_Grade
53 from Work.loan_portfolio;
54 QUIT; Where am I going wrong?
... View more