Archives of the TeradataForum
Message Posted: Thu, 24 Feb 2005 @ 20:54:15 GMT
Subj: | | Fast Export and &SYSRC |
|
From: | | Arunachalam, Sankar |
Why is an export select statement returning zero rows not resetting the SYSRC variable ??????
Is this a bug or feature??? Any idea?
--------------------------------------------------------------
Example:
--------
.LOGTABLE XXXXXXXX
.RUN FILE PASWORDFILE
/*** Execute OS command ***/
.os "xxxxxxxxxxxxxxxx"
/*** check return code ****/
&sysrc = 1
.export
select
- - - ;
.end export
/**** SQL Executes just fine...
BUT finds no rows
****/
/*** check return code ****/
&sysrc = 1 /** Shouldn't this be zero??? ***/
--------------------------------------------------------------
Thanks
Sankar
|