How to get Output as a pipe delimited file?
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.


How to get Output as a pipe delimited file? Expand / Collapse
Author
Message
Posted 3/19/2008 7:06:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/9/2008 8:36:14 PM
Posts: 8, Visits: 176
Hi,

I wrote a SQL in Teradata and the report needs to be in the pipe delimited format.

I was told that I need to add another select with all the column names seperated with pipes (||) to get that.

Can't really find any info.

Can someone help me with this?

Thanks
Rajiv
Post #10988
Posted 3/20/2008 12:59:04 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 3:12:49 PM
Posts: 117, Visits: 231
if you are using BTEQ

.SET SEPARATOR 'string'

BTEQ manual has an example for .set separator "|".


Shaw
Post #10992
Posted 3/20/2008 1:25:35 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/26/2008 4:53:36 PM
Posts: 50, Visits: 220
you may use code like this too.

select cast(
CUST_ID||'|'||
CUST_NAME||'|'||
...
...
UPDATE_DATE||'|'||
UPDATE_TIME
as char(250))---(must be big enough to hold all columns plus commas)
from CUST
Post #10993
« 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 4:44pm

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