Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

MODE and FORMAT - TD Utilities. - response (5) by Raja_KT

$
0
0

Hi Raj,

You have not shared your script. You have not shown the data.

Have you tried with FORMAT FASTLOAD or even TEXT,VARTEXT MODE RECORD. Also you can try thus:

 

select CAST( field1 || '|' ||field2 || '|' ||

 

(CASE WHEN field3 IS NULL THEN '?' ELSE field3) || '|' || 

 

......

 

CAST(trim(CAST(fieldn  AS CHAR(10))))....

 

AS CHAR( ) (TITLE '')

 

from table1------ casting the whole thing

 

The manual gives us many options.

 

The manual says:

 

 

 

TEXT format should only be specified for character data. Do not

 

specify TEXT format for binary data, such as, INTEGER, BYTEINT,

 

PERIOD, and other binary data. Depending on the actual byte values of

 

the binary data, unexpected results may occur.

 

 

Cheers,

 

Raja


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>