date formats in Paralle extender

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
nair
Participant
Posts: 11
Joined: Fri Oct 14, 2005 12:44 pm

date formats in Paralle extender

Post by nair »

Hello Everybody,
I want to know how to convert the date formats in parallel.
I know in server, we use ICONV and OCONV.
I have to convert source format 1/1/2005 to 20050101 format.


Please let me know how to do in paralle.

Thanks in Advance
nair
jenkinsrob
Participant
Posts: 31
Joined: Mon Dec 01, 2003 6:24 am
Location: London

Post by jenkinsrob »

What is you source??

You can either read the date as a string and chop out the /'s and rearrange to the YYYYMMDD format. Then use StringToDate(<YourDate>,'%yyyy%mm%dd') to get it into a date datatype

Or

Do DateToString() Then Rearrange Then do StringToDate()
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

You can do it in a transformer, use the right mouse click menu to find a list of functions, you can do it a bit more quickly in a Modify stage. Use the Parallel Job Developers Guide to find a list of functions valid for a Modify stage spec. Note that the functions used by the Modify stage are different to those used by a Transformer.
Post Reply