It's probably not as simple as you might think.
An excellent resource for mixed models in SAS is
https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html
I suggest that you attempt writing code yourself after studying this text. If you then have questions or problems, you can post your code and either your data set or an example data set. Someone in the Community may be able to help then.
... View more