month_end date

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

month_end date

Post by BIuser »

Hi

I want to load last month data(September) in this month(october), so i want the month end date to be of last month(September), not of this month_end.
this code works for this month OConv(MONTH.LAST(MONTH.TAG(DATE())),'D-YMD[4,2,2]')

what code can i use to get the last month_end date in this month, i'm using datastage 7.5.1
-------------------------
https://www.ssa.co.za
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

If you are loading the data to database. Then you can use the database functions to get the last date of the month. which database you using.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Code: Select all

OConv((MONTH.FIRST(MONTH.TAG(DATE())) - 1) ,'D-YMD[4,2,2]') 
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply