A BY statement can be used with PROC MDC to obtain separate analyses on observations in groups defined by the BY variables.