Hi,
While i am running the job I am getting following warnings.
TRNAddSubRecVal: [IBM][CLI Driver][DB2] SQL0181N The string representation of a datetime value is out of range. SQLSTATE=22007.
Please provide how to resolve the above one.
Advanced thanks.
Regards,
PReddy.
The string representation of a datetime value is out of rang
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 30
- Joined: Tue Jun 20, 2006 10:22 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Learn what the highest date that can legally be represented in your DB2 instance is, and check that no later date is included in your data. Be wary of the format of the date also, for example don't supply mmddyyyy if yyyy-mm-dd is expected.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 30
- Joined: Tue Jun 20, 2006 10:22 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you change the field length, I think you also have to change the Display length. DB2 defaults the format of timestamps to YYYY-MM-DD HH:MM:SS.mmmmmm (I think). If the process is converting that to char or varchar, then you need more than 18 or you will truncate.
Don't know if that helps or not!
Bestest,
Don't know if that helps or not!
![Embarassed :oops:](./images/smilies/icon_redface.gif)
Bestest,
Bestest!
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
-
- Participant
- Posts: 30
- Joined: Tue Jun 20, 2006 10:22 pm