Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Load FASTLOAD Error Records into Required Format - forum topic by suhailmemon84

$
0
0

I need to store the value in the DataParcel column(which is of VARBYTE datatype) in the first error table of FASTLOAD into a permanent teradata table but with a proper format(The ddl of this table will be exactly the same as the target table, except that all datatypes are varchar)
I know this as a potential solution/*From teradata manual*/:
1. Export the dataparcel columns using BTEQ in RECORDMODE
2. Import it back again using BTEQ IMPORT-->USING-->INSERT statements. Here I need to ensure I strip out the first 2 bytes by using a dummy SMALLINT field in the USING modifier.
Is there any other solution where I achieve all of the above by keeping the record in teradata itself rather than export the records back to the client system and bring it back into Teradata?
Perhaps a UDF that converts the dataparcel column which is in varbyte to varchar?
Regards,
Suhail

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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