Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: 8i - Calling SQL + from Shell Script Question

Re: 8i - Calling SQL + from Shell Script Question

From: Kay Kanekowski <kkanekowski_at_a-m-c.de>
Date: Tue, 19 Jun 2001 08:57:19 +0200
Message-ID: <9gmt4i$og8$1@fermi.tro.net>

Hi,

just an idea that works on OS/390 Host:

declare
<your block>
....
end;
/

whenever sqlerror exit failure 8

declare

   i integer;
begin

   if :my_exit = 22 then

      i := 1 / 0;
   end if;
end;
/

whenever sqlerror exit 4

declare

   i integer;
begin

   if :my_exit = 27 then

      i := 1 / 0;
   end if;
end;
/

whenever sqlerror continue

exit;

hth
Kay Received on Tue Jun 19 2001 - 01:57:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US