BY variable …;
A BY statement can be used with the STATESPACE procedure to obtain separate analyses on observations in groups defined by the BY variables.