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

Receiving Failure 2673 The source parcel length does not match data that was defined while importing using BTEQ - response (3) by dnoeth

$
0
0

Hi Sudipta,
there are different datatypes in Teradata for DATE, TIME and TIMESTAMP.
When you cast a string to a time you can't use a date part, when you cast to a date you can't use a time part.
In your case either keep data as is and use the cast i showed or use the rearranged data and cast to a timestamp.
And because the FORMAT is based on Cobol you must use a 'B' instead of a blank in the format string: yyyy-mm-ddBhh:mi:ss
 
You'll find a lot about working with DateTime datatypes scattered throughout the manuals and there's an old article written by Geoffrey Rommel on the TeradataForum website covering the basics: http://www.teradataforum.com/l081007a.htm
It's a bit outdatet, as there are more advanced datatypes/functions, but there are two good articles on PERIODs by Rob Garrison:
http://developer.teradata.com/database/articles/exploring-teradata-13s-period-functions
 
Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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