ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Integration Bus9

Post new topic  Reply to topic
 Integration Bus9 « View previous topic :: View next topic » 
Author Message
SphereOfLove
PostPosted: Sat May 17, 2014 10:44 am    Post subject: Integration Bus9 Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

Hi I can not cast date

SET castTime = CAST(RefOutRecord.Response.ServiceHeader.MessageTime AS DATE CCSID 1208);

where RefOutRecord.Response.ServiceHeader.MessageTime has value like
'2014-05-17T20:36:41+01:00' i want to convert it to DATE to insert into oracle table defined as DATE.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 17, 2014 2:32 pm    Post subject: Re: Integration Bus9 Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

SphereOfLove wrote:
Hi I can not cast date

SET castTime = CAST(RefOutRecord.Response.ServiceHeader.MessageTime AS DATE CCSID 1208);

where RefOutRecord.Response.ServiceHeader.MessageTime has value like
'2014-05-17T20:36:41+01:00' i want to convert it to DATE to insert into oracle table defined as DATE.

So why did you not specify a format clause in your cast?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SphereOfLove
PostPosted: Sat May 17, 2014 3:24 pm    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

I did try the other way too, but it is still giving me cast exception.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 17, 2014 3:45 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

SphereOfLove wrote:
I did try the other way too, but it is still giving me cast exception.

Maybe you did not correctly describe your format?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jsware
PostPosted: Mon May 19, 2014 3:46 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

What's the exception you get and what was the format clause in the other attempt?
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Integration Bus9
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.