data utma_test2;
set test;
array search(5) acct_1-acct_5;
array find(5) test1 test2 test3 test4 test5;
do i=1 to dim(search);
if find(search(i), 'ABCD', 'i')>0 then find(i) = 'ABCD';
end;
run;
25 GOPTIONS ACCESSIBLE;
26 data utma_test2;
27 set test;
28
29 array search(5) acct_1-acct_5;
30 array find(5) test1 test2 test3 test4 test5;
NOTE: The array find has the same name as a SAS-supplied or user-defined function. Parentheses following this name are treated as
array references and not function references.
31
32 do i=1 to dim(search);
33 if find(search(i), 'ABCD', 'i')>0 then find(i) = 'ABCD';
ERROR: Too many array subscripts specified for array find.
34 end;
35 run;