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 » MQMD.Format differences 6.0.2 and 6.1

Post new topic  Reply to topic
 MQMD.Format differences 6.0.2 and 6.1 « View previous topic :: View next topic » 
Author Message
francoisvdm
PostPosted: Thu Feb 26, 2009 1:05 am    Post subject: MQMD.Format differences 6.0.2 and 6.1 Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

The following code results in different output between V6.0.2 and V6.1 on windows platform. Any help?
Code:
SET OutputRoot.Properties.Encoding = 546;
      SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;
      SET OutputRoot.MQMD.Format = MQFMT_ADMIN;
      SET OutputRoot.MQMD.ReplyToQ = 'PCF_OUT';
      SET OutputRoot.MQMD.MsgSeqNumber = 1;

      CREATE FIELD OutputRoot.MQPCF;
      DECLARE refRequest REFERENCE TO OutputRoot.MQPCF;
      SET refRequest.Type = MQCFT_COMMAND;
      SET refRequest.StrucLength = MQCFH_STRUC_LENGTH;
      SET refRequest.Version = MQCFH_CURRENT_VERSION;
      SET refRequest.Command = MQCMD_INQUIRE_Q;
      SET refRequest.MsgSeqNumber = 1;
      SET refRequest.Control = MQCFC_LAST;
      SET refRequest.ParameterCount = 2;

      SET refRequest.Parameter[1] = MQCA_Q_NAME;
      SET refRequest.Parameter[1].* = 'TEST2';
        SET refRequest.ParameterList[1] = MQIACF_Q_ATTRS;
      SET refRequest.ParameterList[1].* = MQIA_CURRENT_Q_DEPTH;
      
      set OutputRoot.BLOB.BLOB = asbitstream(OutputRoot.MQPCF);
      set OutputRoot.MQPCF = null;
      set OutputRoot.MQRFH2 = null;


In V6.0.2 the message arrives in the queue with MQMD format set as "MQADMIN". In V6.1 the field is empty.

Any ideas?
_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
Back to top
View user's profile Send private message Send e-mail
francoisvdm
PostPosted: Fri Feb 27, 2009 12:42 am    Post subject: Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

Solved the problem: Do the code as follows, from the online help:
Code:
CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
      CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN 'MQADMIN' NAME 'MQPCF';
      CREATE FIELD OutputRoot.MQPCF;
      SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;
      SET OutputRoot.MQMD.ReplyToQ = 'PCF_OUT1';
      DECLARE refRequest REFERENCE TO OutputRoot.MQPCF;
      SET refRequest.Type = MQCFT_COMMAND;
      SET refRequest.StrucLength = MQCFH_STRUC_LENGTH;
      SET refRequest.Version = MQCFH_CURRENT_VERSION;
      SET refRequest.Command = MQCMD_INQUIRE_Q;
      SET refRequest.MsgSeqNumber = 1;
      SET refRequest.Control = MQCFC_LAST;
      SET refRequest.ParameterCount = 2;

      SET refRequest.Parameter[1] = MQCA_Q_NAME;
      SET refRequest.Parameter[1].* = 'TEST2';
        SET refRequest.ParameterList[1] = MQIACF_Q_ATTRS;
      SET refRequest.ParameterList[1].* = MQIA_CURRENT_Q_DEPTH;


I guess it is the PCF parser that was messing me around. But...old code was working in V6.0.2 ....


_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
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 » MQMD.Format differences 6.0.2 and 6.1
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.