123 data comp; 124 set test; 125 by n; 126 retain k d1 d2 d3; 127 if first.n then do; 128 call missing(d1,d2,d3); 129 k=1; 130 %do i = 1 %to 3; ERROR: The %DO statement is not valid in open code. 131 k=&i.; - 386 200 WARNING: Apparent symbolic reference I not resolved. 132 d&i.=1; - 180 WARNING: Apparent symbolic reference I not resolved. ERROR 386-185: Expecting an arithmetic expression. ERROR 200-322: The symbol is not recognized and will be ignored. ERROR 180-322: Statement is not valid or it is used out of proper order. 133 output; 134 %end; ERROR: The %END statement is not valid in open code. 135 end; 136 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.COMP may be incomplete. When this step was stopped there were 0 observations and 5 variables. WARNING: Data set WORK.COMP was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.06 seconds cpu time 0.06 seconds