* FirstLast Example Print the first and last names in alphabetical order for both boys and girls. ; options ls=64 nodate pageno=1; data kids; infile 'c:/datasets/kids.txt' firstobs=2; input name $ gender $ age; proc sort; by gender name; data answer; set kids; by gender; if first.gender or last.gender; firstvar = first.gender; lastvar = last.gender; proc print; run; quit;