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 » CAST problem

Post new topic  Reply to topic
 CAST problem « View previous topic :: View next topic » 
Author Message
cute_pav
PostPosted: Wed Jan 15, 2003 6:40 am    Post subject: CAST problem Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

Hi,
Recently I installed MQ CSD05 and WMQI CSD03.
I could see CAST problems here.Can anyone suggest for fix.

Code as follows:
-----BEGIN--------
DECLARE C INTEGER;
SET C = CARDINALITY(InputRoot.*[]);
DECLARE I INTEGER;
SET I = 1;
WHILE I < C DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I=I+1;
END WHILE;
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageFormat = 'CWF';
SET OutputRoot.Properties.MessageSet = 'DPOV7QO084001';
SET OutputRoot.Properties.MessageType = 'LONGSTRINGMSG';

-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
DECLARE X INTEGER;
DECLARE Y INTEGER;
DECLARE query CHAR;
DECLARE yStr CHAR;
SET query = '';

SET X = 2;
SET Y = MultiplyByTwo(X);

CREATE FUNCTION MultiplyByTwo(Value INTEGER) RETURNS INTEGER
RETURN Value * 3;
SET yStr = CAST(Y AS CHAR);
SET query = query || yStr;
SET OutputRoot.MRM.Buffer_Message = TRIM(query);
-------END-----
Error show as:
BIP2402E: (26, 1) : Syntax error : 'integer SET'.

The token caused a syntax error.

Correct the syntax of your expression and redeploy the message flow.

thanks in advance

pav
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Nyusser
PostPosted: Thu Jan 16, 2003 12:55 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jul 2002
Posts: 48

Hi,

you have to locate functions and procedures in the end of the esql code. In your example you have a function declared in the middle of the main program - which causes the error.

- Nyusser
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 » CAST problem
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.