This document discusses running a two-way ANOVA in SAS with an unbalanced design. It shows the SAS code to specify a class and model statement to analyze the effects of factors A and B and their interaction on the response variable y. It also provides code examples for generating contrasts and least squares means comparisons. Dummy variable coding is explained as a method for representing categorical variables in the model. Finally, alternative approaches for analyzing main effects and interactions are suggested if contrast analysis cannot be run directly.