Need help in building the logic

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Build the dataset inside a sequence or loop using the values as each year will contain 12 months.

So for Apr-2005 to today, it will be 4 full years + 2 partial ones.

Alternatively you can create a server job to prepare the list of values into a seqential file and call that prior to your current job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Basically the approach that Sainath suggested, plus you can use the MONTH.LAST transform to generate the date of the last day of a month. You can do that in a User Variables activity or directly in the expression the provides the value to the job parameter.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pradkumar
Charter Member
Charter Member
Posts: 393
Joined: Wed Oct 18, 2006 1:09 pm

Post by pradkumar »

Thanks for your reponses. I will try these options and let you know if i get any issues.
Pradeep Kumar
Post Reply