Hello I have the following data set with binary fields C1,C2.....C10. Data tbl; input ID C1 C2 C3 C4 C5 C6 C7 C8 C9 C10; cards; 111 1 0 0 0 0 0 0 1 1 0 222 0 0 0 0 0 0 0 0 1 1 333 0 1 0 0 0 0 0 0 0 0 444 0 0 0 0 0 0 0 0 0 0 555 0 0 0 0 0 0 1 1 0 1 ; run; I want to create a new calculated variable that tell us which variables received value 1. For example : For ID 111 the new variable will receive value C8,C9 For ID 222 the new variable will receive value C9,C10 For ID 333 the new variable will receive value C2 For ID 444 the new variable will receive value 'No_Fail' because none of fields received value 1 For ID 555 the new variable will receive value C7,C8,C10 Can anyone help to write the code for that? thanks Koein
... View more