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 » PCF command reply - SUCCESS or FAILURE?

Post new topic  Reply to topic
 PCF command reply - SUCCESS or FAILURE? « View previous topic :: View next topic » 
Author Message
mqsiuser
PostPosted: Thu Feb 05, 2015 2:17 am    Post subject: PCF command reply - SUCCESS or FAILURE? Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Dear PCF-Command-Experts ,

we have PCF-commands returning the following answer:

Code:
00000000:  '0000 0002 0000 0024 0000 0001 0000 0029  '.......$.......)'
00000010:  '0000 0002 0000 0001 0000 0002 0000 0BC0  '...............￀'
00000020:  '0000 0000                                '....            '


So PCF-commands can answer with SUCCESS, FAILURE or DATA.

I guess this must be SUCCESS or FAILURE.

Does anyone see what it is ?
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 05, 2015 5:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

PCF should always return a PCF Header.
http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ref.adm.doc/q088600_.htm?lang=en

You can use the structure to translate the bytes you're getting back from amqsbcg.

The real qustion is - what's the PCF *command* you're sending?
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Thu Feb 05, 2015 6:54 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

mqjeff wrote:
The real question is - what's the PCF *command* you're sending?

"Inquire Queue":
Code:
SET OutputRoot.MQPCF.Type = MQCFT_COMMAND;
SET OutputRoot.MQPCF.StrucLength = MQCFH_STRUC_LENGTH;
SET OutputRoot.MQPCF.Command = MQCMD_INQUIRE_Q;

_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 05, 2015 7:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Depending on version, OutputRoot.PCF might not actually be a PCF message.

I would double-check the message you're producing.

Also, you really do need to supply an MQCFST to specify the queue name, even if it's just *
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Thu Feb 05, 2015 7:57 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Here is the full reply-msgs (including header fields):
Code:
****   Message descriptor   ****

  StrucId          : 'MD  '  Version : 2
  Report           : 0  MsgType : 2
  Expiry           : -1  Feedback : 0
  Encoding         : 273  CodedCharSetId : 819
  Format           : 'MQADMIN '
  Priority         : 0  Persistence : 0
  MsgId            : X'-------------'
  CorrelId         : X'-------------'
  BackoutCount     : 0
  ReplyToQ         : '                                                '
  ReplyToQMgr      : 'QM12                                            '

** Identity Context
  UserIdentifier   : 'mquser      '
  AccountingToken  : X'-------------'
  ApplIdentityData : '                                '

** Origin Context  PutApplType      : '7'
  PutApplName      : 'amqpcsea                    '
  PutDate/PutTime  : 'Thu Feb 05 15:18:08 CET 2015'
  ApplOriginData   : '    '
  GroupId          : X'000000000000000000000000000000000000000000000000'
  GroupId as string:   ........................

  MsgSeqNumber     : '1'
  Offset           : '0'
  MsgFlags         : '0'
  OriginalLength   : '-1'

****   Message body   ****

00000000:  '0000 0002 0000 0024 0000 0001 0000 0029  '.......$.......)'
00000010:  '0000 0002 0000 0001 0000 0002 0000 0BC0  '...............￀'
00000020:  '0000 0000                                '....            '

_________________
Just use REFERENCEs


Last edited by mqsiuser on Thu Feb 05, 2015 7:59 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 05, 2015 7:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes, ok.

So, again, the MQCFH tells you how to unpack the bytes in the message.

And, again, the Broker parser PCF may not actually be an MQ PCF parser.

You should verify that the request message looks like a PCF message, and you are required to include the Queue name in the Inquire Queue request message.
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 » PCF command reply - SUCCESS or FAILURE?
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.