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 » How Can Display exception list in variable

Post new topic  Reply to topic
 How Can Display exception list in variable « View previous topic :: View next topic » 
Author Message
se_zn2003
PostPosted: Wed Aug 28, 2013 10:38 pm    Post subject: How Can Display exception list in variable Reply with quote

Apprentice

Joined: 07 May 2013
Posts: 30

I want fetch exception list and display it in header of xml message

so I user this script to display it in message but I can't see response message:

Code:

   CALL CopyMessageHeaders();
   CALL CopyEntireMessage();
   DECLARE path REFERENCE TO OutputRoot.XMLNSC.Message;      
   DECLARE responseCode,responseMsg CHARACTER;      
   SET responseCode = '009';
  SET responseMsg =OutputExceptionList;   SET path.Header.ResponseCode = responseCode;
   SET path.Header.ResponseMessage = responseMsg;
Back to top
View user's profile Send private message Send e-mail
dogorsy
PostPosted: Wed Aug 28, 2013 10:50 pm    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

I think you need to get your concepts right.

you are copying :
1- message headers
2- entire message

why ? what do you want to copy? Only the headers or the whole message ?

Quote:
so I user this script to display it in message but I can't see response message:
Code:

 CALL CopyMessageHeaders();
 CALL CopyEntireMessage();
 DECLARE path REFERENCE TO OutputRoot.XMLNSC.Message;
 DECLARE responseCode,responseMsg CHARACTER;
 SET responseCode = '009';



what you have added here is not a script. Is part of an ESQL program

Code:
SET responseMsg =OutputExceptionList;


you are copying a tree (exception list) to a character variable.

why do you not set the ResponseCode and ResponseMessage in the output tree directly , rather than saving the values in local variables before assigning to the output tree ?
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 » How Can Display exception list in variable
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.