Manipulating timestamp

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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Manipulating timestamp

Post by DSguru2B »

I have a timestamp in the format Mar 10 2006.
I want to convert this into 200603 ( ie: YYYYMM).
Any suggestions?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Various ways you can do this. Us telling you a solution won't help you to learn independence, grasshopper. See what you can come up with alone (with the help of the manuals, of course). To make it interesting, let me set you this challenge. Come up with one solution using a Modify stage and another solution using a (parallel) Transformer stage. Post your thoughts.
Incidentally, your source data (as you've described) do not appear to be in timestamp format.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Got the result? Or Holded up?
If the input is in date formate you can directly use YearFromDate and MonthFromDate function in transformer and concatinate the both.
Yes, output is not in timestamp. (Input either)
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply