Sort by the first variable. The BY statement specifies that the observations should be ordered numerically by the number of years worked.


   by yearsworked;
run;