![SAS author's tip: Identifying FIRST.row and LAST.row in by-groups](https://blogs.sas.com/content/sastraining/files/2015/01/MOVIES_Table.jpg)
A popular DATA step programming technique frequently used by SAS users is the ability to identify the beginning and ending observation in by-groups. The way it works is whenever a BY statement is specified with a SET statement, two temporary variables are created in the Program Data Vector (PDV), FIRST.variable