Hello, I have a group of variables that describe what procedure a patient got (up to 15 procedures) that are ICD-9 codes in strings (e.g. "6701") that are PR1, PR2.....PR15. Another group of variables are the day on which those procedures happen (e.g. 1, 2, 5, 10...) that are PRDAY1, PRDAY2....PRDAY15. How do I match up what day a SPECIFIC procedure happened? e.g. I need a variable that tells me that patient got procedure 6701 (Surgery) on day 6. These are how the procedure variables have been labeled thus far: Data Inpatients; array PR {15} PR1-15; do k=1 to 15; if PR{k] = '6701] then Surgery =1 etc. end; Thank you! I'm using SAS 9
... View more