Larry,

I read some of the responses you've already received, and would like to add my
two cents worth.

1.  I believe you can send PCF commands from os/390 to Win2k.  The problem you
may encounter would be data translation on the way back.  I think that can be
handled properly by setting the MQMD_FORMAT field to MQFMT_PCF.  The response
should come back with the same format.  I confess, though, I haven't done this
off an os/390, only across vaxes.

2.  The message type should be MQMD_REQUEST, and sent to
'system.admin.command.queue'.  The reply-to-queue must be coded in the MQMD of
the request; it can be modeled after 'system.mqsc.reply.queue'.  You should get
back an MQMD_REPLY.

3.  You can send an ESCAPE command, which allows you to send real RUNMQSC
command and not have to build the command structures, but you will still have
to interpret the results.  Either way, refer to supportpac MS02; that's the one
I used as the basis for a utility that I had written for a client.  I don't
recall seeing any way to get back the structured response that RUNMQSC
presents.

4.  one important thing.  When you get an error back from the command server,
you will get back more than one response.  Keep that in mind as your parse
responses.  I don't recall the exact situation, but I believe the code in MS02
handles it properly.

That's all I can do for you.  Hope this helps.

David Awerbuch
APC Consulting Services, Inc.
West Hempstead, NY
(516) 481-6440
[EMAIL PROTECTED]





-----Original Message-----
>From: Larry LaChanse <[EMAIL PROTECTED]>
>Reply-To: MQSeries List <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: PCF commands FROM OS/390 to Win2K
>Date: Wed, 10 Jul 2002 11:54:04 -0400
>
>I'm running MQ V2.1 on OS/390 and V5.2 on Win2K.    I want to periodically
>alter the GET attribute of a Q which lives on a Win2K box.   I want to
>control the attribute from events that occur in my OS/390 environment.    I
>could write to a triggered Q on the target box, launching an MQSC command
>file to alter the attribute and send a success message back to the
>mainframe, but I was wondering if I could instead do the same thing with a
>PCF command.
>
>I've never worked with PCF commands before.   I believe PCF commands aren't
>supported "inbound" to OS/390, but can I create a PCF command originating
>on my OS/390 box headed out to the queue manager running on a Windows 2000
>server?     If so, has anyone done this who would be willing to share
>tips/techniques, or actual code?
>
>Thanks in advance!
>Larry LaChanse
>The MONY Group
>


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to