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 » MQ RFH2 Header

Post new topic  Reply to topic
 MQ RFH2 Header « View previous topic :: View next topic » 
Author Message
psn
PostPosted: Tue Oct 07, 2003 11:59 pm    Post subject: MQ RFH2 Header Reply with quote

Disciple

Joined: 30 Oct 2002
Posts: 193
Location: France

Hi,

I have MRM TDS in Messages in my Flow and I want in error situation generate the exceptionList on the Message. My Idea is to paste the exception list on the RFH2 Header but what are the minimal ESQL instruction to generate the MQ RFH2 Header in a Comtupte node with the user tag ?

Thank for you help

PSN
Back to top
View user's profile Send private message
eaiguy
PostPosted: Wed Oct 08, 2003 8:11 am    Post subject: Reply with quote

Newbie

Joined: 06 Oct 2003
Posts: 2

You can try the following piece of logic for populating exception data to MQRFH2 user variables.

-- PARSING THE SYSTEM GENERATED EXCEPTION LIST TO FIND THE DEEPEST EXCEPTION
-- DECLARE VARIABLES FOR CAPTURING EXCEPTION DATA

DECLARE Path CHARACTER;
-- Current path within the exception list
DECLARE ErrorLocation CHARACTER;
-- Application where the error occurred
DECLARE ErrorProcess CHARACTER;
-- Action being performed within the application when the error occurred
DECLARE ErrorCode INTEGER
-- The error reference number
DECLARE ErrorMessage CHARACTER;
-- The Error Message
DECLARE ErrorDateTime DateTime;
-- Time when error occurred
DECLARE ErrorLogId INTEGER
-- MQSeries Message Id

-- START AT FIRST CHILD OF THE LIST

SET Path = 'InputExceptionList. *[1]';

-- POPULATE ERROR DETAILS AVAILABLE FROM EXCEPTION LIST

LOOP through all the children
Check if the error attribute is available
SET <error variable declared above> TO <respective error attribute in exception list>
Repeat the above two steps for all the relevant error attributes available in exception list

END LOOP

-- POPULATE ERROR DETAILS AVAILABLE FROM MQMD HEADER

SET <error variable declared above> TO <respective attribute in MQMD>
Repeat the above step for all the relevant error attributes available in MQMD

-- POPULATE ERROR DATETIME

SET ErrorDateTime variable TO <Current DateTime>

-- MODIFYING MQRFH2 HEADER PROPERTIES WITH ERROR VARIABLES

SET OutputRoot.MQRFH2.usr.<PROPERTY> TO <error variables SET earlier>
Repeat the above step for all the relevant properties
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 » MQ RFH2 Header
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.