Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Wed, 19 Nov 2008 @ 17:13:44 GMT


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


Subj:   Re: Define the more than one file in Multiload
 
From:   Venkata, Vinay

Hi Dharmawat,

Here is the script I'm sending.Please go through it.

     .BEGIN MLOAD TABLES Employee;

     .LAYOUT Layout1;
     .FIELD    In_EmpNo      * Integer;
     .FIELD    In_EmpName    * Varchar(25);

     .LAYOUT Layout2;
     .FIELD    In_EmpNo      * Char(4);
     .FIELD    In_EmpName    * Char(25);

     .DML LABEL Payroll;
     INSERT INTO Employee VALUES (:In_EmpNo, :In_EmpName);

     .IMPORT INFILE NewEmployee1.data
        LAYOUT Layout1
        APPLY Payroll;

     .IMPORT INFILE NewEmployee2.data Format TEXT
        LAYOUT Layout2
        APPLY Payroll;

     .END MLOAD;

Regards,

Vinay



     
  <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: 28 Jun 2020