Please see the attached Excel worksheet for what my final output should look like. I have two databases (safety and clinical) that I merged together to check for inconsistencies. For each patient, I am checking their serious adverse events (SAE) to make sure that the SOC, PT, start/stop dates, relationship, and death dates match in both databases. I have two different types of traffic lighting that I need to do: First, if there is an SAE that is in one database but not the other, it is noted in the SAEMISS variable, and I would like to highlight that whole row. Second, if the SAE is in both databases, I would like to only highlight the 2 corresponding variables where there is no match. For example, if a patient has the same SOC in both databases, but the PT name is slightly different, then I just want to highlight the two PTNAME cells for that case (and the same for any other variables that are different between databases). I think I can highlight the rows from my first scenario by using the following code in PROC REPORT: compute saemiss; if saemiss^='' then call define(_row_,"style","style={background=red}"); endcomp; However, I am stuck on the second scenario. I can find how to highlight when a numeric value is within a specified range, but I can find an example for character values that compare across observations. Any ideas on if this is possible?
... View more