Timestamp in multiload
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Timestamp in multiload Expand / Collapse
Author
Message
Posted 6/9/2008 8:25:39 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/19/2008 11:31:49 AM
Posts: 1, Visits: 17
Hello,

I am trying to "multiload" a file which contains a field in a timestamp format without the zero in front of the day nor the month:
"5-6-2008 05:00:08 AM" instead of "05-06-2008 05:00:08 AM"

Which format string should I use (if any) or what else could I do to import the file?

Thanks
Nicolas.
Post #11771
Posted 7/12/2008 8:33:58 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 7/12/2008 11:43:32 AM
Posts: 12, Visits: 44
We had the same problem last thursday, we modified the input file with a nawk script. In out case the input format was a sybase file with the dates format with Feb 2 2008 12:00AM and Teradata didn't recognize the days with only one character.

I don't have here the exact script but was something like:

split the date with the " "
Build a new date using sprintf and format the day number with %.2d

And call the function for every field date in the file.

It worked fine.


In BI, the 90% of the work comes from the 10% of the records.
Post #12073
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 10:32am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 10 queries. Compression Disabled.