|
|
Archives of the TeradataForum
Message Posted: Mon, 21 Feb 2011 @ 14:39:19 GMT
Subj: | | Script returning wrong return code |
|
From: | | madhu.priya |
Hi All,
A script where we are submitting error level 3807 as severity 0, then dropping the table and checking if Errorcode is not equal to 0 we quit
with RC=0 else RC =20. When running the script we get errorlevel 3807, which should be set as severity 0 and quit with RC=0 but the script is not
doing so , it give RC=20 and passes errorlevel as 3807. Please suggest what might be the probable cause for this.
.SET ERRORLEVEL 3807 SEVERITY 0;
DROP TABLE db.tb1
;
.IF ERRORCODE <> 0 THEN .QUIT 20
Regards,
Madhu
| |