Alright, I got it to work. I'm not quite sure why it was ignoring the array that one time. You raised a good point about capitalization, justification, leading/trailing blanks, etc. so I ended up not using the in() function and instead used a FIND statement for each ICD code with the "i" option to ignore case. Here is the final code: DATA WANT;
SET DATA.HAVE;
where ((TRIAGE_DTTM >= '01JAN2017:00:00:00'd and TRIAGE_DTTM < '01FEB2017:00:00:00'd)
or (VISIT_DTTM >= '01JAN2017:00:00:00'd and VISIT_DTTM < '01FEB2017:00:00:00'd));
ARRAY DXARRAY[10] DXCODE1 - DXCODE10;
DO I = 1 TO 10;
IF find(DXARRAY[I],'T407',i) or find(DXARRAY[I],'F12',i) THEN OUTPUT;
END;
RUN;
... View more