Archives of the TeradataForum
Message Posted: Thu, 24 Feb 2005 @ 20:59:47 GMT
Subj: | | Re: Fast Export and &SYSRC |
|
From: | | Arunachalam, Sankar |
-- corrected the error in exsample...
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 ***/
.system "xxxxxxxxxxxxxxxx" /*** .SYSTEM WAS .OS --- CORRECTED ***/
/*** check return code ****/
.IF &sysrc = 1 then ;
--- /*** whatever ***/
.endif ;
.export
select
- - - ;
.end export
/**** SQL Executes just fine...
BUT finds no rows
****/
/*** check return code ****/
.if &sysrc = 1 then ; /** Shouldn't this be zero??? ***/
--- /*** whatever ***/
.endif ;
--------------------------------------------------------------
Thanks
Sankar
|