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