![](//teradataforum.com/imgs/ptdfw1.gif) |
![](//teradataforum.com/imgs/ptdfw2.gif) |
Archives of the TeradataForum
Message Posted: Fri, 27 May 2011 @ 09:44:22 GMT
Subj: | | Re: Read a file inside BTEQ |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Friday, May 27, 2011 03:26 -->
Quincy Leslie wrote:
| If you are willing to use a Unix shell script in your process, then "here doc" SQL statement can be piped to "bteq". Within the bteq, a
final select statement can be executed and those fields selected can be piped to another process, e.g. an awk statement for specific formatting,
including populating of one or more variables. P.s., the final select statement output is most easily read by another process, if the output
fields are concatenated and pipe delimited. | |
Could you please forward any code snippet if available. Thanks in advance.
| |