In reply to kang yang.

The LEAVE statement in the SAS DATA step is equivalent to the "break" statement. It provides a way to immediately exit from an iterative loop. See the article "LEAVE and CONTINUE: Two ways to control the flow in a SAS DO loop"