I am very new to SAS and am looking for help with a very basic task. I have figured out how to count the number of observations in a dataset by group, or to display the counts using proc freq. How would I go about storing the information (for example, number of observations coming from group 4) so that I can use it later on? For example, if I determined that 134 observations come from group 4, how could I store this information so that I can use the number later on in some computations? Could I do this simultaneously for the counts coming from all groups? Is there a way to do this with proc freq? Is there a basic way to do it without this procedure?
... View more