Conversion of Date format in Datastage?

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
kris9999
Participant
Posts: 11
Joined: Thu Nov 17, 2005 5:35 am

Conversion of Date format in Datastage?

Post by kris9999 »

Hi,
I am new to DataStage. Can u give me suggestion regarding how to write the expression in Datastage which was given in Informatica as below,

TO_DATE('01-01-1900 12:00:00')

Thanks in Advance,
Thanks & Regards,
Kris
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Kris,

there is more than one answer to your question in DataStage. The function (if any) to use depends upon the target database or file format that you want. Assuming you have a string coming in, you can use the ICONV() function to parse the date and time portions into their internal formats for either computational purposes or for re-conversion to another display output format.
kcshankar
Charter Member
Charter Member
Posts: 91
Joined: Mon Jan 10, 2005 2:06 am

Post by kcshankar »

Hi Kris,
Here is an example of builtin Transform function which converts the given Timestamp format (YYYY-MM-DD HH:MM:SS) to Internal Time format.

Example: TIMESTAMP.TO.TIME('2006-01-03 16:39:59') => "59999"



regards
kcs
Post Reply