How to write a SAS macro program to repeat your SAS processing for each value of a BY grouping variable.
Tag: macro programming
A well-formed WHERE statement or subsetting IF can narrow down the output of your SAS DATA step. The SAS log does a good job of telling you how many records were processed by the action. For example, let's look at this simple DATA step with my "poor man's random sample",