Great - thank you! * The code worked until: 401 402 if sum of lt90vax(*))=4 then any4=1; -- 22 76 ERROR 22-322: Syntax error, expecting one of the following: (, [, {. ERROR 76-322: Syntax error, statement will be ignored. 403 else any4=0; 404 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WANT may be incomplete. When this step was stopped there were 0 observations and 14 variables. WARNING: Data set WANT was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.08 seconds cpu time 0.00 seconds * I tried adding a parenthesis and got the following error: 441 end; 442 443 if sum of (lt90vax(*))=4 then any4=1; -- - 22 386 68 200 76 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, LE, LT, MAX, MIN, NE, NG, NL, OR, ^=, |, ||, ~=. ERROR 386-185: Expecting an arithmetic expression. ERROR 68-185: The function OF is unknown, or cannot be accessed. ERROR 200-322: The symbol is not recognized and will be ignored. ERROR 76-322: Syntax error, statement will be ignored. 444 else any4=0; 445 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set N.WANT may be incomplete. When this step was stopped there were 0 observations and 14 variables. WARNING: Data set N.WANT was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.08 seconds cpu time 0.01 seconds * Then I tried removing the 'of' and got the following error: 461 end; 462 463 if sum (lt90vax(*))=4 then any4=1; - 386 200 76 ERROR 386-185: Expecting an arithmetic expression. ERROR 200-322: The symbol is not recognized and will be ignored. ERROR 76-322: Syntax error, statement will be ignored. 464 else any4=0; 465 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set N.WANT may be incomplete. When this step was stopped there were 0 observations and 14 variables. WARNING: Data set N.WANT was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.43 seconds cpu time 0.03 seconds Thank you!
... View more