I keep receiving this error message: 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, TO, ^=, |, ||, ~=. The code is: data ex7; INFILE "12q19.character.txt" dlm='09'x firstobs=2; input HOUSE Y X1 X2 X3 X4 location $; if location="intown" then DO Zlocation1=0; Zlocation2=0; Zlocation3=0; end; else if location="inner suburbs" then DO Zlocation1=1; Zlocation2=0; Zlocation3=0; end; else if location="outer suburbs" then DO Zlocation1=0; Zlocation2=1; Zlocation3=0; end; else do Zlocation1=0; Zlocation2=0; Zlocation3=1; end; x1location1=x1*Zlocation1; x1location2=x1*Zlocation2; x1location3=x1*Zlocation3; run; This is where the error message is:
... View more