Ah, yes - my mistake, there. The LOWCASE function in the line that detects "Other" is screwing things up.
shared_othern=find(lowcase(Shared_services),"Other")>0;
This would work as you described:
data want;
set have;
managementn=find(lowcase(Shared_services),"management structure")>0;
physical_infrastructuren=find(lowcase(Shared_services),"physical infrastructure")>0;
personnel_responsibilitiesn=find(lowcase(Shared_services),"personnel responsibilities")>0;
revenues_and_expensesn=find(lowcase(Shared_services),"revenues and expenses")>0;
technical_infrastructuren=find(lowcase(Shared_services),"technical infrastructure")>0;
care_managementn=find(lowcase(Shared_services),"care management")>0;
social_needs_servicesn=find(lowcase(Shared_services),"social needs services")>0;
best_practicesn=find(lowcase(Shared_services),"best practices")>0;
shared_othern=find(Shared_services,"Other")>0;
run;
... View more