Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 02 Dec 2003 @ 17:24:01 GMT


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


Subj:   Fastexport fetching garbage
 
From:   Vivek Pandey

Hi All,

I am getting the garbage included in the result of a fastexport for a query which runs properly in BTEQ.

In BTEQ.
--------

SELECT ''''||trim(both from (tc.a))||''''||' '||''''||'akakaka.b'||''''
;

 *** Query completed. One row found. One column returned.
 *** Total elapsed time was 1 second.

((((((''''||Trim(BOTH FROM a))||'''')||' ')||'''')||'akakaka
--------------------------------------------------------------------
'/Vivek/Pandey/Germany' 'akakaka.b'

In FASTEXPORT.
--------------

.LOGTABLE test_101 ;
.logon tdpid/username,passowrd;

.BEGIN EXPORT ;
.EXPORT OUTFILE indidata FORMAT text mode record;

SELECT ''''||trim(both from (tc.a))||''''||' '||''''||'akakaka.b'||''''
;

.END EXPORT;

.Logoff;

$ cat indidata
#'/Vivek/Pandey/Germany' 'akakaka.b' <--- garbage(#) in the begining of the record.

(This garbage value changes for the different combination of strings in the select.)

However the fastexport runs fine if I typecast the select string as a fixed char.

Any clues ??

The fastexport release is FEXP.07.06.02.000 in v2r5.


Thanks, Vivek.



     
  <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