Convert date to Julain date format in datastage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Veni
Participant
Posts: 45
Joined: Fri Oct 21, 2005 2:51 am

Convert date to Julain date format in datastage

Post by Veni »

How to convert date to julian date format in datastage

in coming date format is mm/dd/yyyy , i want to convert this date to julian date format.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Julian means different things to different people. The conversion functions (Iconv() and OConv()) use "ordinal day within the year". If that's what you want use

Code: Select all

Oconv(Iconv(InLink.TheDate, "DMDY"), "D/JY")
(or use "D/YJ" to get year first.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply