Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 24 Feb 2005 @ 20:59:47 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023