The WITH HOLD clause must appear in the outermost compound Explanation: You have used the WITH HOLD clause in a compound statement that is nested within one or more other compound statements. User Action: Move the WITH HOLD clause to the outermost compound statement in the procedure.