One more thing, Order of Operations, you'll have to take care are using these correctly. AND is higher on the order of operations so the AND here happens first
else if sum(R1strong, EP1strong, PL1strong, DC3strong, FM1strong, V3strong) ge 2 or sum (R1strong, EP1strong, PL1strong, DC3strong, FM1strong, V4strong) ge 2 or sum(R1strong, EP1strong, PL1strong, DC3strong, FM2strong, V3strong) ge 2 or sum(R1strong, EP1strong, PL1strong, DC3strong, FM2strong, V4strong) ge 2 AND VALUE = 1 then TIPlifenum = 1;
I think you might have intended for the ORs to happen before the AND. If so, you'll need parentheses.
else if sum(R1strong, EP1strong, PL1strong, DC3strong, FM1strong, V3strong) ge 2 OR sum (R1strong, EP1strong, PL1strong, DC3strong, FM1strong, V4strong) ge 2 OR sum(R1strong, EP1strong, PL1strong, DC3strong, FM2strong, V3strong) ge 2 OR sum(R1strong, EP1strong, PL1strong, DC3strong, FM2strong, V4strong) ge 2 and VALUE = 1 then TIPlifenum = 1;
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p1n8bsqqd03xppn17pgvjpjlbhhs.htm#p1ces81yre845mn1rg0jkr2uwxbg
... View more