Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Importing delimiter text file!!!!!!!! - response (9) by Adeel Chaudhry

$
0
0

This is a typical case of complex delimited file scenario:

If you take " as your delimiter, you will have following columns:

 

null
12345
,
ABCD
,
STU,GHj
,
01/01/2012
null
 
and , will also be incorrect .... hence .... you need to come up with a pre-processing script to:
 
 
- remove " in case its at the start of row, or at the end just before new-line character
- replace "," with may be || or $$ (any unique character which is not supposed to come in data .... " and , are wrong options)
 
Only then you will be able to process such file.
 
HTH!
 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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