See the "Statistical Background in Linear Regression" section in the Introduction to Regression Procedures chapter of the SAS/STAT User's Guide. Formulas are shown in the subsections.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.