Date Extraction.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
karry450
Participant
Posts: 201
Joined: Wed Nov 14, 2007 11:31 pm
Location: HYD

Date Extraction.

Post by karry450 »

Hi Friends

I have Timestamp in the format as 12/07/2008 04:00:15, I want to extract just the date part as 12/07/2008.

Do we have anyfunction to do in datastage server jobs.

Can anyone help

thanks.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In Server jobs the dates/timestamps are strings, so a "LEFT(In.TimestampCol,10)" or "In.TimestampCol[1,10]" will do this for you.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. You use substring or Field() function to extract the date portion as a string from your input value.
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