Hi
i am getting date in this format 82205
if i use this code
OCONV(ICONV(FMT(Link.DATE,"6'0'R"),"DMDY[1,1,2]"),"DYMD[4,2,2]")
i am getting the following error:
data for column exceeds column width (8), row 33 (approx), data = 2005/08/22
My Target column length is 8 and sql type is varchar.
can any one suggest me.
Thanks in advance.
Date Error
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The delimiter characters ("/") are making this date 10 characters long, so it won't fit in a Char(8) field. Change the second argument of Oconv() to
Code: Select all
"DYMD[4,2,2]":@VM:"MCN"
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.