So I'm running PROC SUMMARY with SUM for the frequency of something and I only have 160 observations however I am running into the issue that the sum of the frequencies is 161. I double checked the original data set that there are 160 observations and everything but something is making the frequency 161 and I'm not sure what. 

I've tried some code

```
PROC SQL;
    CREATE TABLE DiseaseFreq AS
    SELECT Concomitant_Disease,
            count(*) AS Freq
    FROM CAS.PreOp
    GROUP BY Concomitant_Disease;
QUIT;

DATA Disease (KEEP=var freq RENAME=var=Concomitant_Disease);
    SET DiseaseFreq;
    LENGTH var $25. freq 3.;
    DO i=1 BY 1 WHILE(SCAN(Concomitant_Disease,i,"~^,")^='');
        var=STRIP(PROPCASE(SCAN(Concomitant_Disease,i,"~^,")));
        Freq=Freq;
        OUTPUT;
    END;
RUN;

PROC SUMMARY DATA=Disease;
    CLASS Concomitant_Disease;
    VAR Freq;
    OUTPUT OUT=Count SUM=Freq;
RUN;

```