Page 1 of 1

required end_time

Posted: Sat Nov 05, 2005 12:13 am
by murali
HI,
THIS IS THE REQUIREMENT:

I WANT END-TIME WHERE
END-TIME(TIME) = START-TIME(TIME)+DURATION(TIME)

IN PARELLEL JOBS HOW I CAN SOLVE THIS?

Posted: Sat Nov 05, 2005 3:35 am
by ArndW
Hello Murali,

(uppercase posts mean that YOU ARE SHOUTING, we are not hard of hearing and can understand lowercase quite well)

Your requirement is common, but the answer depends upon your actual column definitions, as DataStage PX is very type sensitive.

I will assume that you have two columns, STARTTIME and DURATION; but what data types are they and what data type do you wish your ENDTIME to be in?

Posted: Mon Nov 07, 2005 7:39 am
by sudarshan
Hi,

Use the TimestampFromSecondsSince(seconds,timestamp) function. Note that here you can put number of seconds in negative value as well.

:) Sudarshan