to get first & last date of previous month

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
poornima.chandramouli
Participant
Posts: 42
Joined: Wed Dec 26, 2007 1:58 am
Location: India

to get first & last date of previous month

Post by poornima.chandramouli »

If i was running my job today,i've to get the current time stamp value in today field(that can be done by including current time stamp function),but i want the last date of the previous month in one field & the first date of the last month.(If i was running the job today i.e., 30-Apr-2008 ,i should get the last date of march & the first date of march)


How to get it?
Regards
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

The best solution to all these kinds of questions is to have a time dimension table against which you can perform a lookup.
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