Return Code for script Shell In Bteq

General

Return Code for script Shell In Bteq

Hello,

Please I need Help,

I want to know How to test a return code for Shell Called in Bteq with OS command

Example :

bteq <<! > $FIC_LOG 2>&1

$User

.set errorout stdout

.set echoreq on

.OS sh ./exit_12.sh $1 $2 $3

.quit 

!

My question : How do to test return code off exit_12.sh

Thank's a lot