Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 23 Jun 2008 @ 08:28:50 GMT


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


Subj:   Re: Getting error in import and repeat commands in bteq
 
From:   jonas.blomqvist

Sridhar.S

Your import and using clauses need to match the record format and layout of your import file.

Depending on if you are running on channel-attached or network attached, your bteq needs to be modified as:

     --channel-attached (format=data, layout=6 bytes record)
     .import data file=in_condition.out
     .repeat 2
     using dno (char(3)) ,filler1 (char(3))
     sel * from department where deptno = :dno
     ;


     --network-attached (format=report, layout=6 bytes record)
     .import report file=in_condition.out
     .repeat 2
     using dno (char(3)) ,filler1 (char(3))
     sel * from department where deptno = :dno
     ;

Regards

Jonas Blomqvist



     
  <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