I want a variable "T08_count" that counts the 6 character long variables "code_1-code_44", which BEGIN with "T08". I have made following code, but then it count all variables of "code_1-code_44" which contain "T08" at any place in the string:
data pb;
set work.pb;
array t (1) $6_temporary_('T08');
do i=1 to dim(t);
T08_count=sum(T08_count, count(catx(' ', of code_1-code_44), STRIP( t[i], 'i'));
end;
drop i;
run;