Add row numbers to PROC SQL output. NUMBER adds a column that contains the row number.
proc sql number;