In DB2, SQLCODE SQL0181 means that the given representation is not valid
db2 ? sql0181
However, when I write in DB2 your date, it accepts it:
db2 "values timestamp('0001-01-01 00:00:00.000000')"
1
--------------------------
0001-01-01 00:00:00.000000
1 record(s) selected.
However, when I put an invalid date, like 13 months, it returns your error code
db2 "values timestamp('0001-13-01 00:00:00.000000')"
1
--------------------------
SQL0181N The string representation of a datetime value is out of range.
I think you have a problem of locale and regional settings that does not correspond to the provided datetime.
Run this command, and then start modifying the date
db2 "values current timestamp"
Table 6. Datetime Limits
- Smallest TIMESTAMP value 0001-01-01-00.00.00.000000000000
- Largest TIMESTAMP value 9999-12-31-24.00.00.000000000000
http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0001029.html