PROC PRINT prints the output data set. Using the BY and ID statements with the same variable makes the output easy to read. See The PRINT Procedure for more information on this technique.
proc print data=result noobs;
   by idnum;
   id idnum;
   title 'The Output Data Set RESULT';
run;