var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Grabbing SQL code after deactivate for error handling
UDB 8.2, Solaris
I've not done scripting and need to account for particular SQL codes coming back after db2 commands. Our current code is:
if [[ $rc -eq 0 ]]; then
echo "Deactivate database completed SUCCESSFULLY for $DBNAME on `date`." >> $
echo "\n!!! ERROR !!! -- deactivate db FAILED for database $DBNAME on `date`!
\n" >> $LOGFILE 2>&1
Can I say [ $rc -eq SQL1496W ] in an additional else clause or do I pull it some other way?
Thanks for your help,
Nope. You'll have to parse the CLP output yourself.
Originally Posted by brdholman