Author |
Message
|
jmeckard |
Posted: Thu Oct 03, 2002 5:07 am Post subject: MQSC Commands from OS/390 Batch to Remote Unix Queuemanagers |
|
|
Newbie
Joined: 03 Oct 2002 Posts: 6
|
I would like to send MQSC Commands from an OS/390 Batch Job to multiple Remote Unix Queuemanagers and view the reply messages on a file or sysprint. In CSQUTIL I can do this nicely from OS/390 to OS/390, but not from OS/390 to Unix.
Is there a simple way how I could accomplish this ?
Any help would be appreciated.
Thanks
Jean-Marc |
|
Back to top |
|
 |
mgrabinski |
Posted: Sun Oct 06, 2002 11:26 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
OS/390 manager uses plain text for commands, but Unix and all others require PCF format _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
oz1ccg |
Posted: Mon Oct 07, 2002 3:24 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
You have to write a program issuning these commands as PCF-commands, not plain vanilla but managable, it's easier to decode the answer backs because it's stuctured, but the requstes is difficult because of the syntax.
There are a sample in the manual, written in C. You should take a look on the homepage of IBM-supportpacks, I guess there are a few there, there are even a program here in the repository on MQSeries.Net.
just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
jmeckard |
Posted: Mon Oct 07, 2002 10:29 pm Post subject: |
|
|
Newbie
Joined: 03 Oct 2002 Posts: 6
|
Thanks for the info. So I dont get around using PCF Commands. On the other hand I wonder how the runmqsc on th unix platform works. It acceppts mqsc commands. So the conversion from mqsc to PCF would be in there. |
|
Back to top |
|
 |
oz1ccg |
Posted: Tue Oct 08, 2002 1:46 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
I think you're right, I would like to have the parser code from runmqsc because it's usefull for other parsing senarios aswell.
runmqsc is also available on the other "small" platforms.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
Lassic |
Posted: Mon May 29, 2006 6:23 am Post subject: runmqsc to PCF command parser |
|
|
Newbie
Joined: 29 May 2006 Posts: 4
|
It's been quite a while since 2002...
Has anyone seen a runmqsc to PCF command parser since? (prefer java)
Thanks,
Ori |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon May 29, 2006 2:56 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you checked out support pack MS0B  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Lassic |
Posted: Mon May 29, 2006 11:43 pm Post subject: |
|
|
Newbie
Joined: 29 May 2006 Posts: 4
|
Yes I did.
But unless I missed it, I did not see a way to take a runmqsc command string such as "display qmgr" and translate that into the appropriate PCFMessage instance (other than writing such a parser myself of course).
Did I miss such a parser in the support pack?
Thanks,
Ori |
|
Back to top |
|
 |
EddieA |
Posted: Mon May 29, 2006 11:56 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Look at the "escape(d) text" PCF command.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Lassic |
Posted: Tue May 30, 2006 12:27 am Post subject: |
|
|
Newbie
Joined: 29 May 2006 Posts: 4
|
That's excellent. Thanks for the quick replies  |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 30, 2006 4:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Also, to be clear, to the best of my knowledge runmqsc does not use PCF commands. So having the source of it would not be very helpful, except in a general way as "here is an official implementation of a parser for MQSC commands".
I think the M072 support pack may be more helpful (although less "official"). But it also looks like Paul hasn't updated it to v6 yet... And oops , Paul doesn't include source!
But, really, MQSC should be very straight forward to parse in any language. It's very well structured. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Lassic |
Posted: Tue May 30, 2006 5:15 am Post subject: |
|
|
Newbie
Joined: 29 May 2006 Posts: 4
|
Cool, thanks for the additional comments.
Another question:
When using the escape(d) text PCF command - Does the PCF security\permissions mechanism hold as usual PCF?
I know that for runmqsc we needed an admin user and there was no way to control authorization of this program.
I'm trying to use PCF now to avoid that problem but still be able to use scripts that use the runmqsc syntax (hence the escape(d) text implementation).
Am I making any sense? |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue May 30, 2006 9:05 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
jefflowrey wrote: |
But, really, MQSC should be very straight forward to parse in any language. It's very well structured. |
yep... Did it in MQDocument, but beware, there are some quirks in the output when long names, or variables are used  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
|