Time Conversion

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
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Time Conversion

Post by Xpert »

Hi,

From sequential file, i'm getting time value as 00:00:00 and need to load to oracle database. But I'm not able to load the value, its giving the below error message.

J_Time_Convert..Tran_Detail_Records: At row 1, link "Lnk_2", while processing column "MAKERTIME"
Value treated as NULL
Attempt to convert String value "00:00:00" to Time type unsuccessful


I have used the Iconv and oconv function as below in transformer.

Oconv(Iconv(Src_Transfer.MAKERTIME,'MTS'),'MTS')

Please help me out in this.
With regards,
Xpert
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to load this into what datatype in Oracle? There's no "time" type, so what... DATE? TIMESTAMP? VARCHAR2? Only the latter will take a "time" value with no correspoding date associated with it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Post by Xpert »

chulett wrote:You need to load this into what datatype in Oracle? There's no "time" type, so what... DATE? TIMESTAMP? VARCHAR2? Only the latter will take a "time" value with no correspoding date associated with it.
Chulett,

I changed the column to varchar in oracle table and now it is working.

Thanks for your reply.
With regards,
Xpert
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then... Resolved?
-craig

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