I would like to do infinity loop like in JAVA for(i=1;i<200;I++){ if (COL(i) != COL1 AND COL(i) != " ") { q_person_type = "Multiple"; } else { q_person_type = COL1 } } For SAS Code data test3(keep=q_full_nm q_person_type rename=(q_full_nm=node_tooltip)); set test2; do i = 1 to n by 1; q_person_type=COL1; if COLi ne ' ' AND COLi ne COL1 then q_person_type="Multiple"; run; I cannot run this code, could you please check it which part i'm wrong what i want is if COL2, COL3 ... until COL N is not equal to COL1 return "Multiple" but if COL2, COL3 .... until COL N is equal to COL1 or is " " return COL1 Please see picture for more understanding
... View more