Archives of the TeradataForum
Message Posted: Sun, 10 Nov 2002 @ 16:47:37 GMT
| Subj: || || Re: Using multiple external files in a bteq request |
| From: || || Judge, James A |
BTEQ .IMPORT functionality (with the USING clause tied to SQL) only allows 1 file. If as you stated, without being able to build a "temp
table" to hold values of other input selection criteria, your solution would seem to be to merge the two files through an OS process
tocreate a Cartesian join of the two file combinations (could be an AXSMOD to BTEQ - as in C code).
But if you really want to spend some quality time creating SQL from SQL, then you could IMPORT one of the files (probably the one with
the fewest records) and build a BTEQ run script (SQL probably in the form of a create macro followed by IMPORT file, USING... EXEC MACROname
(inputvalue);) Could be more trouble than it is worth though.