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 » Read OutPut Paramter from Stored Procedure into XML MSG

Post new topic  Reply to topic
 Read OutPut Paramter from Stored Procedure into XML MSG « View previous topic :: View next topic » 
Author Message
Fady
PostPosted: Tue Jan 28, 2003 6:17 am    Post subject: Read OutPut Paramter from Stored Procedure into XML MSG Reply with quote

Novice

Joined: 15 Jan 2003
Posts: 15
Location: Egypt , KSA

Hi there

Right now i execute external Stored procedure from my message flow using Call and Create procedure statments

but when this procedure contain out parameter and i want to read this paramter into XML messge. the message flow can't be deployed any more

when i use this code the message flow doesn't accept to be deployed
Declare MX Character ;
Set MX = '';
CALL TransCount(MX);
Create procedure TransCount(Out MX Character)External Name TransCount;
Set OutputRoot.XML.data.Tmp = Cast(MX as Character) ;

and when i comment the last line it works fine

how can i assign the output paramter coming from stored procedure ?!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Tue Jan 28, 2003 12:45 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

When calling external stored procedure using CREATE PROCEDURE command you should not have any ESQL statement after that. So your code should be:
Code:

Declare MX Character ;
Set MX = '';
CALL TransCount(MX);
Set OutputRoot.XML.data.Tmp = Cast(MX as Character) ;
Create procedure TransCount(Out MX Character)External Name TransCount;

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Read OutPut Paramter from Stored Procedure into XML MSG
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.