Effect on open cursors: When a LEAVE statement transfers control out of a compound statement, all open cursors in the compound statement, except cursors that are used to return result sets, are closed.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.