GROUPS=3 assigns one of three possible group values (0,1,2) to each swimmer for each stroke.
proc rank data=pairs out=rankpair groups=3;