Hi,
How to get the Previous 2 months from Given Date in Datastage Parallel Jobs?
Date format=yyyy-mm-dd
Any help would be appreciated.
Thanks
Sandeep
Previous 2 months Date
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 12
- Joined: Sat Jun 27, 2009 5:44 am
Previous 2 months Date
Regards,
Sandeep Jajee
Sandeep Jajee
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 12
- Joined: Sat Jun 27, 2009 5:44 am
Hi,
I have searched the question ..its not yet answered in forum.
Ex:date=2009-04-25 [ccyy-mm-dd]
Output Date:2009-02-25
After doing conversion keep same DD and then make
sure that it is a valid date. If an end of month DD then move the
correct DD for that MM.
say for I/date=2008-04-30
after converion its 2008-02-30..but its invalid date so we have to move the correct date for that month.
if you need more information do let me know.
if we can use any routines or any functions in datastage .it would be great help for me.
Thanks.
I have searched the question ..its not yet answered in forum.
Ex:date=2009-04-25 [ccyy-mm-dd]
Output Date:2009-02-25
After doing conversion keep same DD and then make
sure that it is a valid date. If an end of month DD then move the
correct DD for that MM.
say for I/date=2008-04-30
after converion its 2008-02-30..but its invalid date so we have to move the correct date for that month.
if you need more information do let me know.
if we can use any routines or any functions in datastage .it would be great help for me.
Thanks.
Regards,
Sandeep Jajee
Sandeep Jajee