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
-
nsm
- Premium Member
- Posts: 139
- Joined: Mon Feb 09, 2004 8:58 am
Post
by nsm »
Hi,
My requirement is to get CurrentTimeStamp-(Minus)1Day.
I am using CurrentTimestampMS() function to give me CurrentTimeStamp with Microseconds.
In server job/Routine its easier to do this with ICONV/OCONV functions, can somebody help me to do this in parallel job?
Thanks
nsm.
-
ray.wurlod
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
-
Contact:
Post
by ray.wurlod »
Investigate the Julian date conversions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
nsm
- Premium Member
- Posts: 139
- Joined: Mon Feb 09, 2004 8:58 am
Post
by nsm »
Ray,
I tried looking at Julian date functions but couldn't really see anything that does it.
There are functions that gives previous weekday but not date.
I didn't get an idea if there is a way to use Previous week day and get the date out of it.
Thanks
nsm.
-
us1aslam1us
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
Post
by us1aslam1us »
Have you checked the function TimestampFromSecondsSince()???
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
-
nsm
- Premium Member
- Posts: 139
- Joined: Mon Feb 09, 2004 8:58 am
Post
by nsm »
my requirement is to get currenttimestamp in microseconds -(MINUS)1day.
Please help me in understanding how can I use TimestampFromSecondsSince() function to get what I wanted.
nsm.
-
chulett
- Charter Member
- Posts: 43085
- Joined: Tue Nov 12, 2002 4:34 pm
- Location: Denver, CO
Post
by chulett »
First you said current timestamp
with microseconds and now current timestamp
in microseconds... which one is it?
-craig
"You can never have too many knives" -- Logan Nine Fingers