what is the function to get the currentdate-1

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
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

what is the function to get the currentdate-1

Post by uppalapati2003 »

Hi all,
is there any function to get the currentdate-1.if not please give me the suggestions to get this value.that was very helpful to me

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

Post by ray.wurlod »

DateFromDaysSince() in Transformer stage or date_from_days_since() in Modify stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

Post by uppalapati2003 »

Hi Ray,

i had one stagevariable name Stgvar1 it contains the 1999-12-31. i want to get the stagevar1-1 value like 1999-12-30 like this
Srini
koolnitz
Participant
Posts: 138
Joined: Wed Sep 07, 2005 5:39 am

Post by koolnitz »

Hope DateFromDaysSince(-1,Stgvar1) should work in a Transformer!

Define the datatype of your stage variable as DATE
Nitin Jain | India

If everything seems to be going well, you have obviously overlooked something.
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

Post by uppalapati2003 »

Thanks KOOLnitz..its working fine
Srini
Post Reply