Hi Kranti, You have to add out parameter in your procedure call and to test returned value in main procedure.
Example: proc1( back_val OUT PLS_INTEGER, blahblah IN VARCHAR2) AS BEGIN ... back_val := 1; RETURN; EXCEPTION WHEN OTHERS THEN back_val := 0; END; proc2( back_val OUT PLS_INTEGER, blahblah IN VARCHAR2) AS BEGIN ... back_val := 1; RETURN; EXCEPTION WHEN OTHERS THEN back_val := 0; END; -- to execute a set of stored procedure MAINPROC() AS err_code PLS_INTEGER; BEGIN proc1( err_code, 'Hello World'); IF (err_code=0) THEN RETURN; END IF; proc2( err_code, 'Hello World'); IF (err_code=0) THEN RETURN; END IF; ... END; Jan Pruner On Wed 1. May 2002 09:43, you wrote: > Hi list, > I have writeen a stored procedure to execute a set of stored > procedures. I want to know is there any way to stop the procedure after any > of stoed procedure( from the set) returns an error. > In simple words, is it possible to get a status whether the called > procedure was successful or not. > > TIA > Kranti -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jan Pruner INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).