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

Importing delimiter text file!!!!!!!! - response (8) by MA255022

$
0
0
I'm not aware of any text qualifier in the BTEQ utility, you may need to substitue the delimiters within data with something else. On a UNIX/Linux machine, I would do this like: .OS mv fileName fileName.tmp && sed ':loop s:"\([0-9a-zA-Z/]\+\)|:"\1^:g; t loop' fileName.tmp > fileName This will replace the delimiters within double quotes with a ^ sign. Google "man 7 regex" and "man sed" for detailed explanations. The .OS command in BTEQ runs an operating system command from within the BTEQ utility. On Windows, you can write a fragment of C code for this and call the executable with .OS command.

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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