Varchar in Fast Export
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Varchar in Fast Export Expand / Collapse
Author
Message
Posted 7/29/2007 5:06:41 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/11/2009 3:19:14 PM
Posts: 12, Visits: 33
Hi ,
when i use fast export utility for unloading records from a column having data type "varchar" i am getting two dots (Junk characters) infront of each record. I don't want to cast this field to CHAR. Could anyone please help me to resolve this issue?

Thanks and Regards
Sandi
Post #8376
Posted 7/30/2007 12:33:31 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: PAC and SFT Members
Last Login: 9/9/2009 4:34:06 PM
Posts: 407, Visits: 889
They are not "junk characters", they are the two-byte binary length field that is part of the external format for VARCHAR data (and apparently whatever you are using to view the data translates "non-printable" bytes to "dots").

Options:
1) Cast to CHAR (though you already said you don't want to do that)
2) Use an OUTMOD or AXSMOD to process the data record after it is returned to the client but before it is written to the output file
3) Use some other program or OS utility to process the data records after FastExport writes them to the file
4) Don't use FastExport (e.g. write your own program; you could perhaps use BTEQ "EXPORT REPORT" but that in effect casts to CHAR plus adds other formatting)
5) Live with the length field in the data and change the application that reads the file

Note that options 2 and 3 aren't very useful unless you have a single length field always located at the same offset in every record (typically at the beginning), or perhaps if every field in the output record has a length.
Post #8382
Posted 10/7/2009 11:59:54 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/3/2009 8:55:07 AM
Posts: 1, Visits: 7
Hi,
I've the same problem and the same constraint, I can't cast in char.
I've checked on various forums, and the conclusion are the same as you told.
I've a huge constraint of space on my file server. The size of one file can be greater than 50 Go and the total size is about 350 Go.
The solution of an other utility doesn't seems to be very good because I "duplicate" each file. It cost me about 700Go.
So the solution of making a OUTMOD seems to be better, but I don't know how to develop it.
Can any body help me?


Baptiste DHERVILLEZ
Project Engineer
Post #17054
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:31pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 10 queries. Compression Disabled.