20 May 2012
Your source code is not FastExport, but BTEQ syntax.
BTEQ will never export trailing blanks.
When you actually use FastExport you'll get what you want.
Dieter
21 May 2012
you can use a work around with bteq add a dummy column of '|' to the end and later replace the pipe with space or null
You must sign in to leave a comment.
Hi All,
I am trying to export a file using Fast Export (Teradata) in UNIX. The desired output length is 550 bytes, but the output file is creating string till 75 characters. How to get the full length file?
.LOGON
.EXPORT file=export.txt;
SELECT CAST(('' ||
(CAST('UD ' AS CHAR(3))) ||
(CAST(B.column1 AS CHAR(2))) ||
:
:
(CAST(B.columnN AS CHAR(6)),''))) AS CHAR(550)) (title '')
FROM Table1;
.EXPORT RESET;
.LOGOFF;
Thanks,
Terankit