Dear all, I have a variable (CHOICES)that contains several codes, separated by a comma: CHOICES 23,55,58,81,82,99,110,119 3,9,23,27,55,58,61,82,98,99,105,106,110,118,119 34 i need to create a new variable that has value 1 only when CHOICES contains the single code 3. If I use; NEW = count( choices , '3'); I get NEW 1 2 1 Because SAS counts every instance of 3. So 23 and 34 also get counted. I would like this output instead: NEW 0 1 0 Any suggestion would be most welcome! Thank you in advance. Eman
... View more