Hi All,
I have a requirement to implement the query
select
trim( to_number(to_date(&1,'yyyymmdd') - to_date(&2,'yyyymmdd')) )
in a column of a datastage transformer stage.
&1 and &2 are two columns in the transformenr input which are dates in "YYYYMMDD" format.
the output should column dhould contain the result of the query.
can anyone help me with some datastage functions which can be used to replace this query.??
Need DS transformation function for this SQL command.
Moderators: chulett, rschirm, roy
DataStage server internal dates are Julian; so an should give you the numeric difference in days.
Code: Select all
ICONV(In.Date1,'D4YMD[4,2,2]')-ICONV(In.Date2,'D4YMD[4,2,2]'
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: