<<
Hi all list member , i have following syntax , which i like to find out how can i simplify it , So that it will not run the if command so many time.
 
IF s_1>0  s1 =1 .
IF s_2>0  s2 =1 .
IF s_3>0  s3 =1 .
IF s_4>0  s4 =1 .
IF s_5>0  s5 =1 .
IF s_6>0  s6 =1 .
IF s_7>0  s7 =1 .
IF s_8>0  s8 =1 .
IF s_9>0  s9 =1 .
IF s_10>0  s10 =1 .
IF s_11>0  s11 =1 .
IF s_12>0  s12 =1 .

>>

How about this?

RECODE s_1 to s_12 (0=1) into s1 to s12.