Sometimes, it is useful for analyst to analyze the residuals of a linear regression model to check for non random effects. This is easily done in PROC REG by declaring it as part of the plots.
PROC REG data=<data>;
MODEL Y = X;
PLOT RESIDUAL. * X;
Notice the use of the period (.) following the keyword RESIDUAL.