I have a data like this
| ANTIBIOTIC |
| ANTIBIOTIC | Frequency |
| AZITHROMYCIN | 1 |
| CEFTRIAXONE/AZITHROMYCIN | 3 |
| DOXYCYCLINE | 3 |
| FLUCONAZOLE | 1 |
| METRONIDAZOLE | 1 |
| UNKNOWN | 1 |
I wanted to have a table like this
| ANTIBIOT_NAME | Frequency |
| 4 | 3 |
| 9 | 3 |
| 11 | 4 |
| 77 | 3 |
i used this code
DATA AprilNin.MERGE_April2019_E;
SET AprilNin.MERGE_April2019_D;
IF ANTIBIOTIC =: "AZI" then ANTIBIOT_NAME = "11";
ELSE IF ANTIBIOTIC =: "CEF" then ANTIBIOT_NAME = "04";
ELSE IF ANTIBIOTIC =: "DOX" then ANTIBIOT_NAME = "09";
ELSE IF ANTIBIOTIC = "" then ANTIBIOT_NAME = "00";
ELSE ANTIBIOT_NAME="77";
RUN;
and result is this NOT what I want
| ANTIBIOT_NAME | Frequency |
| 4 | 3 |
| 9 | 3 |
| 11 | 1 |
| 77 | 3 |
the count of AZI (11) should be 4 but it is showing 1.
How do i code to this CEFTRIAXONE/AZITHROMYCIN to count for both Azithromycin and Ceftriaxone?