Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Re: Problem with LOAD TABLE

$
0
0

Ok problem is with data file and load statement, filler ('|')  cannot be pipe filler is the filler width e.g

filler (5)

in datafile for column6:

 

10/03/201409:40:57.000000

should  be


10/03/2014 09:40:57.000000


I tested loading data using your ddl and data file and it works. correct load table statement:


cat loadtab.sql

set temporary option timestamp_format='MM/DD/YYYY hh:nn:ss.ssssss' ;

SET TEMPORARY OPTION NON_ANSI_NULL_VARCHAR = 'ON';

SET TEMPORARY OPTION LOAD_ZEROLENGTH_ASNULL = 'ON';

set temporary option date_format='MM/DD/YYYY';

set temporary option date_order='MDY';

 

 

LOAD TABLE T1 (C1, C2, C3, C4 NULL(BLANKS) , C5 ,  C6 ,  C7  , C8) from '/work/demo1010/loaddat.txt' ESCAPES OFF STRIP OFF  DELIMITED BY '|'  row delimited by '\n' format bcp MESSAGE LOG '/work/demo1010/msg.LOG' ROW LOG '/work/demo1010/rowlog.LOG' ONLY LOG ALL;


Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>