Hi, I am looking to search a variable for a list of strings, which I have specified in an array. My initial thought was to use an index() statement, but I have also tried find() statements as well. I am trying to do something like: array raw_tpts {6} $200. _temporary_ ('PRE' '1HR' '2HR' '4HR' '24HR' '96HR'); array map_tpts {6} $200. _temporary_ ('PRE-DOSE' '1 HOUR POST-DOSE' '2 HOURS POST-DOSE' '4 HOURS POST-DOSE' '24 HOURS POST-DOSE' '96 HOURS POST-DOSE'); array tptnums {6} 8. _temporary_ (0 1 2 4 24 96); do i=1 to 6; if index(SAMPLE_TIME_POINT, raw_tpts[i]) >0 then do; PCTPT = map_tpts[i]; PCTPTNUM = tptnums[i]; end; end;
... View more