I thought I was very specific: I want to get a proportion of patients AGE>65 out of a dataset that has a variable AGE using PROC MEANS. I know how to do it with intermediate datasets/views and PROC SQL so I am not looking for alternative solutions. I don't know how to be more specific.