Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

FASTLOAD WITH FIXED WIDTH FILES - response (15) by rohanpatil008

$
0
0

Hi,
I am using Fastload to load some data in to Teradata database from Mainframe
I used the script mentioned below:
.SESSIONS 100;
                            
.TENACITY 4;
.SLEEP 10;
.RUN FILE LOGON;            
                            
.SHOW VERSIONS;
                            
                            
.SET RECORD VARTEXT'|';     
 DEFINE                     
 EMPLOYEE_NO (VARCHAR(5)),  
 LAST_NAME (VARCHAR(10)),   
 FIRST_NAME (VARCHAR(10)),  
 SALARY (VARCHAR(5)),       
 DEPTNO (VARCHAR(5))        
 DDNAME=INFILE;             
 
                                     
  BEGIN LOADING PROD_ITC.EMPLOYEE_PROFILE              
  ERRORFILES PROD_ITC.EMP_ERR1, PROD_ITC.EMP_ERR2      
  CHECKPOINT 5;                                        
  INSERT INTO PROD_ITC.EMPLOYEE_PROFILE VALUES         
  (                                                    
  :EMPLOYEE_NO                                         
  ,:LAST_NAME                                          
  ,:FIRST_NAME                                         
  ,:SALARY                                             
  ,:DEPTNO                                             
  );                                                   
 
 .END LOADING;                                         
                                                       
 .LOGOFF;                                              
         
INFILE:           
10001|Patel|Sujay|30000|50001
10003|Pathak|prajyan|60000|50002
10002|Agarwal|Sunil|70000|50003
10005|Dsouza|Ishaan|80000|50004
10004|Singh|Rajesh|90000|50005
But I am getting the below error:
        .SET RECORD VARTEXT;                       
**** 04:05:48 FDL4800 Invalid FastLoad statement 
04:05:49 Number of recs/msg: 756                              
04:05:49 Starting to send to RDBMS with record 1              
04:05:49 Bad file or data definition.                         
04:05:49 The length of: EMPLOYEE_NO in row: 1 was greater than
Please provide me some solution to this.
                                 


Viewing all articles
Browse latest Browse all 14773

Trending Articles