Page 1 of 1

Recode Using Array

Posted: Mon Mar 06, 2017 6:16 pm
by rdone
I need to recode a variable based on a list of about 6,300 reference codes. The logic might look like:
recode VAR2 as 1 if VAR1 = (any value on list of reference codes)
Is there a way to do this using an array or some other quicker way than hard coding each of the 6,300 reference codes?
Thanks in advance,