Hello, I have a huge dataset, with almost 30 variables and a patientid, and variable names of columns are long too(as it's real world data). The columns contain Yes, no or unknwon values, or missing. I need to find number of Yes in all columns per patient. How can I acheive this in just one data step. I know there are other multiple ways , using multiple datasteps to acheive this, but I am curious how to do it in one datastep. I tried this, but it doesn't work: nyes = countw(MYOCARDIALINFARCTION--AIDS, "Yes"); where first columns name is MYOCARDIALINFARCTION and last column name is AIDS Thank you
... View more