Solved – COMPUTE Command in SPSS equals sign was not found

I am executing the following in SPSS:

DO IF (A1=4). COMPUTE (A1_COR=1). ELSE IF (A1~=4). COMPUTE (A1_COR=0). END IF. EXECUTE. 

Can anyone see why I am receiving the, "An equals sign was not found when expected after the target variable" error?

It should looks like this:

DO IF (A1=4). COMPUTE A1_COR=1. ELSE. COMPUTE A1_COR=0. END IF. EXECUTE. 

Similar Posts:

Rate this post

Leave a Comment