What you loosely describe could possibly be interpreted as a Generalized Estimating Equations model which can be fit in PROC GEE or PROC GENMOD. Another possibility, if the response is binary, is a conditional logistic model which can be fit using the STRATA statement in PROC LOGISTIC. You might want to look through the book "Fixed Effects Regression Methods for Longitudinal Data Using SAS" (Allison, P., SAS Institute, 2005).
... View more