Archives of the TeradataForum
Message Posted: Wed, 11 May 2011 @ 13:20:01 GMT
| Subj: || || Re: Read a file inside BTEQ |
| From: || || Leslie, Quincy |
If you are willing to use a Unix shell script in your process, then a "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.