Hi
My source table has one column date in the format of ddmmyyyy,I need the target table with three columns as dd ,mm,yyyy separately.
Can any body resolve this ?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Look at the date conversion functions either in the Modify stage chapter or for the Transformer stage in Appendix A in the Parallel Job Developer's Guide - there are functions for extracting date components.
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.
Maveric, there is no such function as InputField in Datastage 7.5.1A.
Rumu, there is no such function as substring in Datastage 7.5.1A.
Ray, from what I see in the transformer's date functions, none of them will do what he is trying to do.
It seems like this is his best option:
Left(IncomingCol,2): ' ,' : Right(Left(IncomingCol,4),2) : ',' : Right(IncomingCol,4)
Let me know what you guys think.
Rumu, there is no such function as substring in Datastage 7.5.1A.
Ray, from what I see in the transformer's date functions, none of them will do what he is trying to do.
It seems like this is his best option:
Left(IncomingCol,2): ' ,' : Right(Left(IncomingCol,4),2) : ',' : Right(IncomingCol,4)
Let me know what you guys think.
![Confused :?](./images/smilies/icon_confused.gif)
You couldn't find the 'date component' functions Ray mentioned? He meant Appendix B, at least that holds the Functions in my 7.5.1A version:
MonthDayFromDate
MonthFromDate
YearFromDate
Etc.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers