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 » Problem with PCF

Post new topic  Reply to topic
 Problem with PCF « View previous topic :: View next topic » 
Author Message
sfari
PostPosted: Wed Oct 13, 2004 1:03 am    Post subject: Problem with PCF Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Hi,

I am trying to do a runmqsc within my Java program to inquire a mainframe queue manager. I am doing this using an escaped PCF command and send it to the host queue managers SYSTEM.INPUT.COMMAND queue. As far as I understand it should be possible to use escaped runmqsc commands on z/OS, is that correct? The command server returns an invalid answer (I attached the code below). Is there an other possibility to run a runmqsc command on a z/OS queue manager within a Java program?

Thanks,
Silvano

Code:

// Create an escaped PCF request to inquired z/OS queue manager
PCFMessage request = new PCFMessage(CMQCFC.MQCMD_ESCAPE);
request.addParameter(CMQCFC.MQIACF_ESCAPE_TYPE, CMQCFC.MQET_MQSC);
request.addParameter(CMQCFC.MQCACF_ESCAPE_TEXT, "dis q(Q.EPLATFORM.LDAPREQ)");

// Write request into MQMessage
MQMessage msg = new MQMessage();
request.write(msg);

// Configure settings for reply message
msg.replyToQueueName = "Q.EPLATFORM.IVP";
msg.replyToQueueManagerName = "C004501A.SUN.T";
msg.userId = "#T1QMMS";

// Put options
MQPutMessageOptions opt = new MQPutMessageOptions();
opt.options = MQC.MQPMO_SET_IDENTITY_CONTEXT;

// Send msg to remote qm
MQQueueManager qm = new MQQueueManager("");
qm.put("SYSTEM.COMMAND.INPUT", "T1QM", msg, opt);
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Oct 13, 2004 4:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I don't think z/OS supports PCF messages yet.

However you can send the z/OS command server clear MQSC commands and it will process for you.

There is a support pac (that's a java program) MS16 which is exactly what you need.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sfari
PostPosted: Wed Oct 13, 2004 7:38 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Thanks, that's exactly what I am looking for!
Back to top
View user's profile Send private message
sfari
PostPosted: Fri Oct 15, 2004 5:27 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

This simple way of sending runmqsc commands does not work on Solaris right?
Or may I am doing something wrong, because I get some cryptic data when I send the same commands which work on z/OS to the command queue of a Solaris queue manager.
I am developing a Java program to fire runmqsc commands to queue managers running on Solaris or z/OS. As I understand i need to use escaped PCF for Solaris, right?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Oct 15, 2004 5:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

sfari wrote:
This simple way of sending runmqsc commands does not work on Solaris right?
Or may I am doing something wrong, because I get some cryptic data when I send the same commands which work on z/OS to the command queue of a Solaris queue manager.
I am developing a Java program to fire runmqsc commands to queue managers running on Solaris or z/OS. As I understand i need to use escaped PCF for Solaris, right?


You need some way to detect if the queue manager is z/OS or not.

If it is not z/OS, then you should use the PCF message classes in MS0B. Don't spend work writing code you don't need to write.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sfari
PostPosted: Fri Oct 15, 2004 6:26 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Thanks for your answer! Spend work on code I don't need to write is exactly what I want to avoid!
Thus I would like to use the same code for both platforms but I think this is not possible, right?
It seems that Solaris QM is not able to process simple runmqsc commands in MQ string messages.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 15, 2004 9:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Search for the support pack for PCF commands. Distributed environments (non MF) need to be addressed with PCF commands.
Enjoy
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 » IBM MQ API Support » Problem with PCF
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.