I am doing some tests to load a date YYYYMMDD from a sequential file that needs to be stored as YYYYMMDD in a DB2 table.
In the DB2 Table the data type for the DUE_DT is DATE
I use the following conversion rule
Iconv(Input.DUE_DT,"DYMD")
but the result is displayed as YYYY-MM-DD 00:00:00.0
Is there a conversion that I could use to display the DUE_DT as YYYYMMDD in the DB2 table ?
Please Assis
String to DATE (YYYYMMDD) conversion Error
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Probably. DB2 stores dates as datetime data types. Change the format in the tool to a date-only format if that's what you require. But it makes no difference to how the dates are stored.
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.