Date function

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
neeraj
Participant
Posts: 107
Joined: Tue May 24, 2005 4:09 am

Date function

Post by neeraj »

HI,

I need the help in getting the correct date.

I have a weekly job and whatever date of the current week, i run my job, it extracts the data from previous sunday to Saturday.

I want to put a constraint in datatstage to extract the data only from Saturday only.

In Oracle, I have used the below mentioned function to get
get the data from saturday
next_day(to_date('2010-06-07','YYYY-MM-DD') -7,'Sunday')-8

I am looking for similar constraint in Datastage.

Regards
Neeraj
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are a few, such as DateFromDaysSince(), PrevWeekdayFromDateSince() and so on. Do some research to find out precisely the one that best fits your particular requirement. They're in an appendix of the Parallel Job Developer's Guide.
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