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: