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 » Problem Using CAST function in message mappings

Post new topic  Reply to topic
 Problem Using CAST function in message mappings « View previous topic :: View next topic » 
Author Message
Rodeo
PostPosted: Mon Jan 14, 2008 3:22 pm    Post subject: Problem Using CAST function in message mappings Reply with quote

Apprentice

Joined: 11 Apr 2007
Posts: 30

Has anyone ever tried using the CAST function in message broker v6?
I have not used it before. I am trying to CAST a character string into Date format as follows: CAST ($source AS DATE) and getting an error. I am also prefixing this with esql and it shows up as follows in the message map rule: esql: CAST ($source AS DATE). This is the error I am getting:

"Invalid expression syntax. Expression sequence "esql: CAST ($source AS DATE) only partially parsed to column 9. A resultant expression would therefore only represent the sequence esql:cast. "

Any suggestions/comments?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 14, 2008 8:11 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Mapping expressions do not use the same functions as ESQL, even the ESQL functions are not all available in Mapping.

Cast, in particular, isn't available in the mapping node.

You can call your own ESQL function, that will do the cast. Or you can look at the other prefixes available for mapping expressions... I think the casts are under xsd...
_________________
I am *not* the model of the modern major general.
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 » Problem Using CAST function in message mappings
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.