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 » why won't this cast work???

Post new topic  Reply to topic
 why won't this cast work??? « View previous topic :: View next topic » 
Author Message
mguerr5
PostPosted: Thu Dec 02, 2004 7:40 am    Post subject: why won't this cast work??? Reply with quote

Newbie

Joined: 09 Aug 2004
Posts: 3

A simple example of what we are trying to accomplish...

Code:
Declare i INTEGER 0;
declare b blob X'0066';
SET i = cast(b as INTEGER );
SET Environment.variables.other.casted = i;   


Flow bombs out.
Recoverable Exception indicates "Unsuitable source length"

If we substring and apply the hex value to a message set and then cast, it works?

Any ideas?
Back to top
View user's profile Send private message
JLRowe
PostPosted: Thu Dec 02, 2004 3:04 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Search the docs for 'supported casts', there's a big table giving the rules, and you will be enlightened.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » why won't this cast work???
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.