﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Tools and Utilities  / Export output file formatting / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Sat, 21 Nov 2009 15:18:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Export output file formatting</title><link>http://www.teradata.com/teradataforum/Topic15901-10-1.aspx</link><description>You cannot do it if you are exporting a DATA file.If you can do an EXPORT REPORT, you can:.SEPARATOR '|'(or whatever separator you want.)If you do this, everything will come out as characters, you must suppress pagelength/ headings and column headings (you can only do this in your SQL), and the maximum line length is 265 characters.</description><pubDate>Thu, 25 Jun 2009 11:36:01 GMT</pubDate><dc:creator>jimm</dc:creator></item><item><title>RE: Export output file formatting</title><link>http://www.teradata.com/teradataforum/Topic15901-10-1.aspx</link><description>Take a look at the Linux/Unix 'sed' command.HTH.Cheers.Carlos.</description><pubDate>Thu, 25 Jun 2009 10:20:57 GMT</pubDate><dc:creator>CarlosAL</dc:creator></item><item><title>Export output file formatting</title><link>http://www.teradata.com/teradataforum/Topic15901-10-1.aspx</link><description>Hi Guys,I am using an export command in a BTEQ script. The output file needs to be formatted to get the a comma, pipe(|) or ~ delimited file. Can you guys please help me in this regard? The SQL Statement that I am passing to do this Export command is dynamic, hence can not be pre appended with any of the delimiters. The Code snippet would look like this.EXPORT DATA FILE=$TABLE_NAME.txt/**************************************************************************************************Run the select statement in the file created by shell script**************************************************************************************************/. run file $COL_FILE_NAMEContent of the $COL_FILE_NAME is something that would change dynamically during execution</description><pubDate>Thu, 25 Jun 2009 05:16:19 GMT</pubDate><dc:creator>prajithvarreir</dc:creator></item></channel></rss>