What would be the best way to convert a date in format yyddd (mainframe julian)?
Thanks
date conversion
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You also need a business rule (CENTURYPIVOT) that defines how to handle two-digit years.
If the volumes are not large, a BASIC Transformer stage can do this easily. But what format does your target need to be? Here is one example (for a BASIC Transformer stage) that generates an ISO 8601 format date (YYYY-MM-DD).
If the volumes are not large, a BASIC Transformer stage can do this easily. But what format does your target need to be? Here is one example (for a BASIC Transformer stage) that generates an ISO 8601 format date (YYYY-MM-DD).
Code: Select all
Oconv(Iconv(InLink.JulianDate, "D2YJ"),"D-YMD[4,2,2]")
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.