Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 11 Aug 2008 @ 23:03:53 GMT


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


Subj:   Re: How to generate title column using bteq export
 
From:   Sonje, Zdravko

I am running this statement:

     .SET FORMAT OFF
     .SET WIDTH 120
     .SET PAGELENGTH 120
     .set rtitle ' '
     .export report file=${LOG_DIR}/monthly_invoice_exception.dat
     SELECT
           PARTNER_INVOICE_ID (TITLE 'INVOICE ID'),
           CHARGE_QTY (TITLE 'CHARGE QTY'),
           COALESCE(DETAIL_TOTAL_QTY, 0) (TITLE 'DETAIL QTY')
     FROM
           EDWDB.PARTNER_INVOICE_SUMMARY;

     .export reset
       .IF ERRORCODE <> 0 THEN .GOTO ErrorExit

End here is an output:

     INVOICE ID    CHARGE QTY    DETAIL QTY
     ---------  ------------  ------------
             9.      15634.00      15634.00
           205.          1.00          1.00
           211.         24.00         24.00
           204.          1.00          4.00
             4.           .00           .00
           210.         11.00         11.00
           211.          2.00          2.00
           211.          1.00          1.00
             7.       6440.00       6440.00
             5.          1.00           .00
           204.         12.00         12.00
             6.       1195.00       1195.00
           204.        257.00        286.00
             5.          1.00           .00


     
  <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