Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 28 Apr 2003 @ 19:23:58 GMT


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


Subj:   Re: Fast Export question
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, April 28, 2003 11:39 -->

Please use format command to pad spaces in your file.


Sample Script

..logtable nic_temp.LOG_NIC_Expiry;
..LOGON main/idcard_dba, idcard;

DATABASE        nic_prod;

..BEGIN EXPORT SESSIONS 14;

        .EXPORT OUTFILE c:\IDCARD\Fauji_Export\STG\NIC_Expiry.dat
                FORMAT TEXT MODE RECORD
                OUTLIMIT 5000;

        SELECT
                 A.UID      (format 'x(28)') (char(28))
                ,'      '   (char(1))
                ,DOB        (format 'x (8)') (char(8))

        FROM            nic_prod.nic_ready_data AS A ,
NIC_PROD.DCVF_IMG_REF AS
B ,                                     CDW_IMG_NFA.PERSON_PHOTO AS
C,CDW_IMG_NFA.PERSON_THUMB                                      AS D,
CDW_IMG_NFA.PERSON_SIGNATURE AS E,CDW_NFA.PERSON AS G
                        WHERE    A.UID=B.UID
                        AND     B.PUID=C.UID
                        AND     B.TUID=D.UID
                        AND     B.SUID=E.UID
                        AND     A.UID=G.UID
                        AND          G.TAPE_ID NOT IN ('002-01-0002-N')
                        AND     STATUS_FLAG IS NULL
        ORDER BY        1 ;

..END EXPORT ;
..LOGOFF;

Thanks



     
  <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: 27 Dec 2016