FIRST. and LAST. Variables in SAS tutorial covers working of variables, selecting variables and calculating cumulative score in BY group.