macro

%macro m1 2-10

makes the lines 2 to 10 a macro named m1. The line numbers can be found with %hist.