Quantcast
Channel: Teradata Downloads - Tools
Viewing all articles
Browse latest Browse all 870

TPT load source files with regular expression

$
0
0

We are now using TPT and we have a requirement to load multiple files at the same time. In the beginning we use the (*) in the file name but we have a challenge of using the wildcard character (*). Anyway to use TPT load data file contain regular expression such as ABC_AAA_[0-9].dat, ABC_AAA_BBB_[0-9][0-9].dat? 
Here is the example case:
File layout - 1
ABC_AAA_01.dat
ABC_AAA_02.dat
ABC_AAA_03.dat
File layout - 2
ABC_AAA_BBB_01.dat
ABC_AAA_BBB_02.dat
These 2 file layouts are located in the same directory. If we define the FileName = 'ABC_AAA_*.dat' in TPT script, all 5 source files will be considered by TPT to load and it will cause failure because the 2nd layout is different from 1st layout.

Tags: 
Forums: 

Viewing all articles
Browse latest Browse all 870

Trending Articles



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