I am Sorry, but I don't know where is the running man icon. I run the two methods, the first method gets error and this is the log. NOTE: IML Ready 128 129 use WORK.New_Text_Document; 130 read all var {F1 F2 F3 F4 F5 } into b; 131 print b; 132 i=0; 133 ss=0; 134 /*do i=21 to 30; 135 if (F1 [i] =0 & F2[i]=1 then ss=ss+1; 136 end; 137 do i=51 to 60; 138 if (F1 [i] =0 & F2[i]=1 then ss=ss+1; 139 end; 140 print ss;*/ 141 i=(21:30)||(41:50); 142 ss=sum(F1 [i] =0 & F2[i]=1); ERROR: (execution) Matrix has not been set to a value. operation : [ at line 142 column 11 operands : F1, i Also,The second method by do loops gets error in the log NOTE: IML Ready 129 use WORK.New_Text_Document; 130 read all var {F1 F2 F3 F4 F5 } into b; 131 print b; 132 ss=0; 133 do i=21 to 30; 134 if (F1 [i] =0 & F2[i]=1 then ss=ss+1; ____ 79 ERROR 79-322: Expecting a ). 135 end; ERROR: END does not occur within DO group at line=135 col=1. The last thing, I run this program on 2 intervals of data. What if I have large data and I want to run for many intervals of data (which are systematic intervals). For example, after 20 observations, I choose 10 observations and so on. How I can do that? THANKS, Show quoted text
... View more