Timestamp transform error

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
atul9806
Participant
Posts: 96
Joined: Tue Mar 06, 2012 6:12 am
Location: Pune
Contact:

Timestamp transform error

Post by atul9806 »

Hi All
I am new in DataStage designing. I have a problem with transforming the timestamp to date.
I am using transformer stage to change the timestamp to date

Code: Select all

TIMESTAMP.TO.DATE(DSLink4.CREATE_TIMESTAMP)
Input column = CREATE_TIMESTAMP, type = timestamp
utput column = CREATE_DATE, type = date

When I ran this job, this is giving WARNING like

(Timestamp) transform error: Invalid timestamp input '2011-11-26 10:39:10.385000'

I am nothing getting in output table. :(

please help me to avoid this error
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

can you try setting the extended property as milliseconds for the timestamp field?
pandeeswaran
atul9806
Participant
Posts: 96
Joined: Tue Mar 06, 2012 6:12 am
Location: Pune
Contact:

Post by atul9806 »

Sorry I didn't get you, where I have to change these settings
I already set this as timestamp(26,6)

Thx
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't recall Server jobs supporting milliseconds in timestamps. Just treat the field as a string and substring off the date or use Field() to get it.
-craig

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