Hi Reeza-- I'm getting an error code--I think I'm missing something at the end there. Was wondering if you had an insight? data y7deltaaiccpres; 2776 set y7deltaaicc; 2777 array vars(6) x10 x2 x3 x4 x5 x6; 2778 array vars_new(6) indicator_x10 indicator_x2 indicator_x3 indicator_x4 indicator_x5 2778! indicator_x6; 2779 2780 do i=1 to dim(vars); 2781 ifn(vars(i)=0,=0,=1); - 22 ERROR: Undeclared array referenced: ifn. 2781 ifn(vars(i)=0,=0,=1); - 22 ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, INPUT, PUT. 2781 ifn(vars(i)=0,=0,=1); - 22 ERROR 22-322: Syntax error, expecting one of the following: +, =. 2781 ifn(vars(i)=0,=0,=1); - 76 ERROR 76-322: Syntax error, statement will be ignored. 2782 end; 2783 run;
... View more