Subject: | |
From: | |
Reply To: | |
Date: | Thu, 12 Jul 2001 07:46:15 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Leonard (no relation, but I've met him several times) Berkowitz writes
I am looking for a suggestion on how to trap a DBUTIL error in a batch job.
I
find nothing in the manual about this. I've tried making errors and checking
JCWs and variables, but nothing turns up.
My particular need is to restore part of a data base to another system and
DISABLE data base FOR INDEXING.
It would be big help if the $STDLIST did not need to be checked manually to
verify that this step was successful.
------------------------------------------------
Well, check this out and see if it helps.
:LISTF NODB,2
Non-existent file. (CIERR 907)
:SETJCW JCW 0
:SETJCW CIERROR 0
:SHOWJCW
CIERROR = 0
JCW = 0
:DBUTIL
HP30391C.08.02 TurboIMAGE/XL: DBUTIL (C) COPYRIGHT HEWLETT-PACKARD COMPANY
1987
>>DISABLE NODB FOR INDEXING
Root file does not exist.
>>EXIT
:SHOWJCW
CIERROR = 0
JCW = 99 <<< There you go >>>
Mike Berkowitz
Guess? Inc.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|