PROC NESTED can be used for this type of data. The PROC NESTED procedure in SAS/STAT performs analysis of variance on random outcomes for data from an experiment that has a nested (hierarchical) shape. SAS PROC NESTED is suitable for models with only class effects, it does no longer deal with fashions that include continuous covariates.