Page 1 of 1

date conversion

Posted: Thu Nov 22, 2007 11:48 am
by lfong
What would be the best way to convert a date in format yyddd (mainframe julian)?

Thanks

Posted: Thu Nov 22, 2007 2:36 pm
by chulett
Have you tried searching the pdf documentation for 'julian'? That's where I would start in your shoes.

Posted: Thu Nov 22, 2007 2:53 pm
by ray.wurlod
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).

Code: Select all

Oconv(Iconv(InLink.JulianDate, "D2YJ"),"D-YMD[4,2,2]")