How can I achieve a similar countif function (excel) in SAS? I have a dataset with several thousand columns (variables). For each observation (row), I want to count how many of those columns (variables) have a value greater than 0 (or some other threshold). How can I do this in SAS? Similar, for each column, how can I count how many of the observations have a value that is greater than 0 (or some other threshold)? I can do these easily in excel with countif function. But the data file is too big to be imported into excel. Thanks!
... View more