required end_time

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
murali
Participant
Posts: 54
Joined: Mon Sep 12, 2005 11:38 pm

required end_time

Post 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?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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?
sudarshan
Participant
Posts: 11
Joined: Fri Jun 17, 2005 7:41 am

Post by sudarshan »

Hi,

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

:) Sudarshan
Post Reply