unicode data can become tricky.
In case you want help you should attach
1. a testfile incl. unicode chars
2. the ddl of the target table
3. any fastload script you tried so far
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
below the editor is a FILE ATTACHMENTS link which you can follow and which should be straigt forward to upload files.
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
For UTF8; you need to multiply your DEFINE width by 3 times the target characters.
If you column is defined as VARCHAR(10); change your define stmt to VARCHAR(30).
strange - as you can see attached I get it a file attachemnt link.
lets see...
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
and sorry - but on mac rar files are not known.
Can you tar, zip, gzip?
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
Didn't got it working right now.
But some comments:
You need to define the table columns as character set unicode - otherwise you can not load utf-8 data into it.
create multiset table a(a varchar(10), b varchar(10));
If you define column as varchar in the define statement TD expect 2 bytes of column lengths before each varchar field.
But as you have a fixed line file you should be able to define the fields as char(18) and char(9). But this is still not working correctly.
I was able to load the file into ONE column with the following script:
drop table errora_1; drop table errora_2; drop table fload_tmp; create multiset table fload_tmp (a varchar(10) character set unicode); record 2; set record vartext "//////"; define FIELD1 (varchar(27)), file=TSTu8.txt; show; begin loading fload_tmp errorfiles errora_1, errora_2 ; INSERT into fload_tmp values (:FIELD1); end loading; logoff;
at least this is showing that the data in the file is correct.
I also attached the zip file from you in case someone else like to play arround with this and don't like the fileshare access...
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles

Hi
i have fixed field file in utf8 like that
dots here represent blanks. There are two fields, second field starts from 7-th position. Total record length is 10 characters. I want to load it in table
create multiset table a(a varchar(10), b varchar(10));
What fastload job script i need to write to load this?
I didn'd get it myself with Teradata Fastload Reference. Main problem as i think, that one specifies field lenghts in bytes in define command, not in characters. And in my case i have
record1 first field 7 bytes, second field 6 bytes; record2 first field 8 bytes, second field 4 bytes. Because blanks are 1 byte and cyrillic symbols are two bytes.
Thanks in advance.