Concatenate Two string

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
Shruthi
Participant
Posts: 74
Joined: Sun Oct 05, 2008 10:59 pm
Location: Bangalore

Concatenate Two string

Post by Shruthi »

Hi.. I have a requirement where I have to concatenate a date field and time field and send it to Timestamp field. How to achieve this?
My thought was to convert both date and time into string and concatenate them and later convert from string to timestamp?
Is this is the correct approach. I'm also not sure of how to implement this?

Can someone help?
Shruthi
vjonnala1516
Participant
Posts: 18
Joined: Fri Jan 04, 2008 5:28 am
Location: Bangalore

Post by vjonnala1516 »



Hi choose the following function from transformer Date&Time

TimestampFromDateTime(%date%,%time%), where date should be Y-M-D format.
VJ
Shruthi
Participant
Posts: 74
Joined: Sun Oct 05, 2008 10:59 pm
Location: Bangalore

Thanks VJ

Post by Shruthi »

Thanks VJ. This helped
Shruthi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

To answer the question as asked, the colon is the concatenation operator so you could use it to put the two strings together and then convert that string to a timestamp.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply