Sum Timestamp value

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
siva7143
Participant
Posts: 35
Joined: Wed Aug 09, 2006 12:20 am

Sum Timestamp value

Post by siva7143 »

Hi,

I need to group by based on BUSINESS_DAY_DATE,STORE_ID and TRANSACTION_ID and get the sum of an SIGN_ON_TIME which is an timestamp value.


Should i convert this Timestamp to dfloat before summing would an correct option?

Can anyone help me on this.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If your timestamp values are just number of seconds logged in, then you should be able to sum up the values without conversion. Have you tried it?
siva7143
Participant
Posts: 35
Joined: Wed Aug 09, 2006 12:20 am

Post by siva7143 »

My timestamp value is in the format of (10/21/2010 2:57:55 PM)
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In that case, how would you define the sum of that timestamp? For example, what would you expect to be the answer when adding
"10/21/2010 2:57:55 PM" and "10/21/2010 6:57:55 PM"?

Moderatore - Please more to PX forum
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Arnd, I didn't know you spoke Italian. :wink:

Siva, please edit your original post and add the particulars regarding your version of DataStage, job type, etc. If this turns out to be a Server question, no worries I'll just move it again.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Craig - I think I was thinking in German and wanted to write "Moderatoren" but managed to miss-spell even that simple word.
Post Reply