Ja, mit Verwendung von SQL Exit Pgm und etwas Programmierung - Info und Bsp. dazu unter SQL EXIT Programs etc. leicht zu finden.