Re: Pass Return Code to Shell
From: sanat <joshis_at_detroitedison.com>
Date: 1996/04/03
Message-ID: <4judic$9v7_at_news.deco.com>#1/1
Date: 1996/04/03
Message-ID: <4judic$9v7_at_news.deco.com>#1/1
jennings_at_dca.net (Ed Jennings) wrote:
>I'm running SQL scripts within a Kourne Shell script. If the
>SQL encounters an error, I want the return code to be propagated
>out to the shell return code ($?). Does anyone know how to do this??
>
>Ed
At the beginning of the sql script, type 'whenever sqlerror exit failure (or warning or success)'
At the shell level, check for normal program termination.
Sanat Received on Wed Apr 03 1996 - 00:00:00 CEST