Max duration 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
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Max duration logic...

Post by prasson_ibm »

Hi all,

I have two date columns in source file in timestamp format CALL_START_TIME and CALL_END_TIME. Here i need to pick only a record that has maximum call duration i.e. difference between Call_END_TIME(HH:MM:SS) and CALL_START_TIME(HH:MM:SS).So here i can skip date part,but is there any function in datastage 7.5.3 ,so that i can get the time difference.??
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

SecondsSinceMidnight() [ which may not be the correct name ]

If you apply this function to both times you can subtract to get the interval.
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