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 » IBM MQ API Support » PCFMessage from z/OS MQ 6.0 not compatible

Post new topic  Reply to topic
 PCFMessage from z/OS MQ 6.0 not compatible « View previous topic :: View next topic » 
Author Message
sfari
PostPosted: Tue Aug 29, 2006 5:57 am    Post subject: PCFMessage from z/OS MQ 6.0 not compatible Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Hi,

We have just installed MQ V6 on our Mainframe. I tried my monitoring programs since I have read that MQ on z/OS is now also able to handle PCF command. Processing the command seems to work, but there is a Problem with converting the the reply MQMessage into a PCFMessage.

Code:
         
      // Wait for answer
      MQGetMessageOptions gmo = new MQGetMessageOptions();
      gmo.options = MQC.MQGMO_WAIT | MQC.MQGMO_CONVERT;
      gmo.waitInterval = _maxReplyDelay;
   
      Vector answers = new Vector();
      MQMessage replyMsg = new MQMessage();
      inQ.get(replyMsg, gmo);   
      answers.add(new PCFMessage(replyMsg));
      ....


The "new PCFCommand(replyMsg)" does throw the following Exception:

Code:

com.ibm.mq.MQException: MQJE001: Beendigungscode 2, Ursache 3001
   at com.ibm.mq.pcf.MQCFH.initialize(MQCFH.java:138)
   at com.ibm.mq.pcf.MQCFH.<init>(MQCFH.java:113)
   at ...


I browsed the reply message and decompiled the class com.ibm.mq.pcf.MQCFH and have seen that the first number [first getInt() returns 17 (see below)] seems to be the problem:

Code:

[  364 bytes] Message Descriptor (MQMD)
StrucId      :'MD  '
Version      :2
Report       :0
Message Type :2
Expiry       :-1
Feedback     :0
MQEncoding   :0x'222'
CCSID        :850
Format       :'MQADMIN '
Priority     :5
Persistence  :0 (Not Persistent)
Message Id   :C S Q   T 1 Q M                 - . # . } j R .
              C3E2D840E3F1D8D44040404040404040BF537B35D091D98C
Correl. Id   :C S Q   T 1 Q M                 - . # . } . I .
              C3E2D840E3F1D8D44040404040404040BF537B35D055C98C
Backout Cnt. :0
ReplyToQ     :'                                                '
ReplyToQMgr  :'T1QM                                            '
UserId       :'ECPIVER     '
AccountingTkn:. . T 1 Q M C H I N 1 F A E F C 3 0 . . . . . . . . . . . . . .
              1A0FE3F1D8D4C3C8C9D5F1C6C1C5C6C3F3F0001FAEFC30000000000000000000
ApplIndentity:'                                '
PutApplType  :7
PutApplName  :'T1QM                        '
Put Date     :'20060829'
Put Time     :'12452504'
ApplOriginDat:'    '
Group Id     :. . . . . . . . . . . . . . . . . . . . . . . .
              000000000000000000000000000000000000000000000000
Msg Seq No.  :1
Offset       :0
MsgFlags     :0
Original Len.:-1
11000000 24000000 03000000 00000000 01000000  ....$...............
01000000 02000000 BB0B0000 02000000 09000000  ....................
28000000 5C1B0000 18000000 C3E2D840 E3F1D8D4  (...\..........@....
404040D9 E3F1D8D4 BF537B35 D078124C 04000000  @@@......S{5.x.L....
44000000 FE0B0000 52030000 30000000 5431514D  D.......R...0...T1QM
20202020 20202020 20202020 20202020 20202020
20202020 20202020 20202020 20202020 20202020
20202020


Has anybody an Idea whats going wrong here?
Back to top
View user's profile Send private message
tleichen
PostPosted: Tue Aug 29, 2006 7:45 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Where are you sending these PCF messages from (what platform)?
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
sfari
PostPosted: Tue Aug 29, 2006 7:55 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Sending from Windows 2000 to z/OS MQ V6.0 Queue Manager to the SYSTEM.COMMAND.INPUT queue and reading the reply from a dynamic queue.

Actually it seems that sending PCFMessage request, processing and receiving PCFMessage reply worked
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Aug 29, 2006 8:04 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

So, everthing is okay then?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sfari
PostPosted: Tue Aug 29, 2006 8:23 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Quote:
The "new PCFCommand(replyMsg)" does throw the following Exception:


No the conversion of the MQMessage which I receive as reply into a PCFMessage does not work. The exception mentionend in my first post gets thrown! So may something with the format of the message is wrong.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Aug 29, 2006 8:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Are you using "MS0B: WebSphere MQ Java classes for PCF" ?

3001 -> MQ_CFH_TYPE_ERROR ... I think the problem is that zOS wants MQCFT_COMMAND_XR in the CFH .... (not MQCFT_COMMAND)
and...
ms0b hasn't been updated to support that command, afaik.

See:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqsat.doc/csqsat03128.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sfari
PostPosted: Wed Aug 30, 2006 3:21 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Thanks, that must be the problem, because yes I am using MS0B.

But how can I call PCF commands from my Java program? Is there no Java API available for PCF to z/OS?
Back to top
View user's profile Send private message
sfari
PostPosted: Wed Aug 30, 2006 11:47 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Actually I thought that I could use the same PCF Java programs to send requests to our Solaris QMs and to our z/OS QMs. Isn't that the case?
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Aug 31, 2006 1:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

What exactly do you mean? If MS0B supported the required zOS PCF command, then YES.... why not?

For example, saveqmgr can inquire on unix, windows, os/400 and zOS qmgrs and its one program..... (but its a contact admin old "c" program)

Of course... the "contact admin" other option is to send a "MQSC" command to the zOS command queue (ie: DISPLAY Q(xxx)....). There are other supportpacs that work this way....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » PCFMessage from z/OS MQ 6.0 not compatible
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.