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

TPT - Can you load from a file containing multiple record types?

$
0
0

If we have a file which contains multiple record types, each with a different number of fields and record length but identified by the value in the first field, is it possible to load this using TPT?
A simple example would be a file with a header and trailer, eg:

01|20140523

10|ID01|JOHN

10|ID02|PETER

10|ID03|FRANK

10|ID04|MARY

10|ID05|ELLEN

10|ID06|MICHAEL

10|ID07|SAM

10|ID08|JONATHAN

10|ID09|MICHELLE

10|ID10|ALICE

99|10

 

Could we load the date from record type 01 to STG_HEADER, the ID and username in record type 10 to STG_USER_DETAIL, and the record count in record type 99 to STG_TRAILER?

 

Our files are more complex than this, but I want to know whether this is possible before I look at splitting the file using operating system commands.

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>