Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 21 Jul 2004 @ 16:46:12 GMT


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


Subj:   Re: MLOAD of a file with multiple record types
 
From:   Wayne Schachtel

Create a layout as such. The key is to start each layout at position 1

     .LAYOUT COMP_STORE;

        .FILLER  HDR_TIMESTAMP  1 CHAR(14);
        FILLER  HDR_RCD_TYPE    * CHAR(1);
        FILLER  HDR_LAYOUT      * CHAR(3);
        FILLER  HDR_SEQUENCE    * CHAR(3);
        .FILLER  HDR_ACTION_CDE * CHAR(1);
        .FILLER  HDR_FILLER     * CHAR(78);

        .FILLER  DTL_TIMESTAMP  1 CHAR(14);
        FILLER  DTL_RCD_TYPE    * CHAR(1);
        FILLER  DTL_LAYOUT      * CHAR(3);
        FILLER  DTL_SEQUENCE    * CHAR(3);
        .FILLER  DTL_ACTION_CDE * CHAR(1);
        .FIELD   LOCATION_ID    * CHAR(5);
        .FIELD   SALES_DATE     * CHAR(8);
        FIELD   COMP_STORE_IND  * CHAR(1);
        .FILLER  DTL_FILLER     * CHAR(64);

        .FILLER  TLR_TIMESTAMP  1 CHAR(14);
        FILLER  TLR_RCD_TYPE    * CHAR(1);
        FILLER  TLR_LAYOUT      * CHAR(3);
        FILLER  TLR_SEQUENCE    * CHAR(3);
        .FILLER  TLR_ACTION_CDE * CHAR(1);
        .FILLER  TLR_FILLER     * CHAR(78);

Wayne Schachtel



     
  <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