Hi there,
I would like to ask for assistance on how to write the SAS code to count number of variables with values.
I have the following variables in my table : Diagnosis1,Diagnosis2, Diagnosis3, Diagnosis4, Diagnosis5
And I would like to count the number of variables only if they have a value.
For example, if I only have values for Diagnosis1 , Diagnosis2 and Diagnosis3 , and there are NO values for Diagnosis4 and Diagnosis5 , my diagnosis count will be = 3 .
Greatly appreciate any assistance.
Thank you in advance.
... View more