Flat file with delimiters in FastExport
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.


Flat file with delimiters in FastExport Expand / Collapse
Author
Message
Posted 8/8/2008 9:56:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/8/2008 2:33:30 PM
Posts: 2, Visits: 12
Hi,

I need to create a delimited file using fastexport. As fast export do not support delimited format, so I have written the select to get the delimited output. But the following script prefix each line with 2 junk characters.

[Script]
.LOGTABLE tempdb.xxlogtable;
.LOGON TD_DB/USER1,PASS1;

.BEGIN EXPORT SESSIONS 7
DATAENCRYPTION OFF;

.EXPORT OUTFILE SALIDA.txt
MODE RECORD
FORMAT TEXT;

select
trim(col1) || '|' ||
trim(col2) || '|' ||
trim(col3) || '|' || ...........
...............................
trim(col50)
from table

.END EXPORT;
.LOGOFF;

[Output]
#.R1Field1|R1Field2|...
_:R2Field1|R2Field2|...
...........................

[Desidered Output]
R1Field1|R1Field2|...
R2Field1|R2Field2|...
...........................

I cannot cast the output as char(xxx) as it will increase the size of the output file.
I'm running Fastexport V.07.08.00.000 Win32 plataform.

Any kind of suggestions is highly appreciated.

Thanks,
Jorge
Post #12483
Posted 8/11/2008 5:13:26 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 9/17/2008 6:21:35 AM
Posts: 30, Visits: 105
GIVE each column datatype and length ok


SHEEBA
Post #12496
Posted 10/13/2008 12:03:46 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/13/2008 11:51:09 AM
Posts: 5, Visits: 6
Hello Jorge,

As Fastexport delimited format will add 2 binary character for the length of the record. however if any one can give idea how to ignore 2 binary character in mload.

Thanks in advance!!

Rajendran


Regards,
Rajendran
Post #13149
Posted 10/13/2008 10:07:30 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/12/2008 9:19:53 PM
Posts: 469, Visits: 463
if your purpose is to fastexport from one table and mload else where, why don't you make use of the mlscript option of fastexport ?
Post #13159
« Prev Topic | Next Topic »


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


All times are GMT -5:00, Time now is 11:15pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.250. 10 queries. Compression Disabled.