Author |
Message
|
Chiqid |
Posted: Tue May 29, 2007 9:48 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
Recently, IBM has made it possible to have a batch MQ client for VSE. This client should be able to connect to a Webshphere MQ Server. I have installed the programs on the VSE system, yet haven't figured out what I need to do in the program. One of the batch program sample that is provided is called MQICGETC (cobol). Is there anyone that can provide some assistance in setting this program up to connect to the MQ Server on a SUN system to get the messages out of the Message queue ? |
|
Back to top |
|
 |
tleichen |
Posted: Tue May 29, 2007 10:46 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
|
Back to top |
|
 |
Chiqid |
Posted: Tue May 29, 2007 10:54 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
I have been all over IBM's website. Downloaded the latest information center - there is NO good documentation on setting this up properly. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 29, 2007 11:03 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
VSE skills are not really in high demand in most places.
Taking a very WILD guess, I'd suspect that you need to specify the equivalent of the MQSERVER or MQCLNT* environment variables, but in the job card or some other such for running the batch program.
But I'm even less of a VSE person than I am a zOS person - and I'm less of a zOS person than Vitor is a Java person. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Chiqid |
Posted: Tue May 29, 2007 11:35 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
jefflowrey wrote: |
VSE skills are not really in high demand in most places.
|
thanks for your thoughts on what skills are in high demand....lol.. not sure where that matters in this thread. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 29, 2007 11:40 am Post subject: Re: MQ Batch client configuration |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Chiqid wrote: |
jefflowrey wrote: |
VSE skills are not really in high demand in most places.
|
thanks for your thoughts on what skills are in high demand....lol.. not sure where that matters in this thread. |
I meant it to suggest that the pool of people really CAPABLE of answering your question is very small, and so you might not get a good answer any time soon, at least here. A more official IBM forum or a VSE specific forum might yield faster results. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Chiqid |
Posted: Tue May 29, 2007 12:07 pm Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
Thanks. I've also cross posted in those forums as well. Looking for a shout out from anywhere I can find it. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 29, 2007 12:59 pm Post subject: Re: MQ Batch client configuration |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Chiqid wrote: |
Thanks. I've also cross posted in those forums as well. Looking for a shout out from anywhere I can find it. |
Anyway if you are on a MainFrame there is no way you are going to retrieve messages from the SunOs qmgr....
You need those messages to be routed to the MainFrame qmgr. You can then retrieve them from the MainFrame qmgr.
(the CAF does not work both ways. It only works to attach from a distributed client to the MF....)
I'd expect the batch MQ client in VSE to be only able to attach to the local qmgr but it will allow you to do your processing in batch instead of online...
Might be mistaken though. Open a PMR and get official confirmation...
Enjoy  _________________ MQ & Broker admin
Last edited by fjb_saper on Tue May 29, 2007 1:03 pm; edited 1 time in total |
|
Back to top |
|
 |
Chiqid |
Posted: Tue May 29, 2007 1:19 pm Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 29, 2007 2:25 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I stand corrected and from the wording of the IBM document you should be able to...
I suppose you checked and have all the other required software at the right level.
I suppose as well you read the readme that is telling you in which way the VSE client differs from other MQ clients...
If you still cannot get a client connection to work open a PMR. _________________ MQ & Broker admin |
|
Back to top |
|
 |
Chiqid |
Posted: Wed May 30, 2007 7:35 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
Yep. I have downloaded the latest MQ Information center and there is just not enough information about this new client and how to set it up properly. I have compiled the sample program (MQICGETC) provided to issue the get - but I must be doing something wrong. I know it can't run as it is because it needs somewhere to put the data once the get is issued. I don't think I have the environment variables set up right - and that is where I can not find any documentation on exactly how to do that for the VSE side. I will open a PMR since the docs are not up to date yet. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 30, 2007 8:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
From the README.TXT file included with the MQC5 support pack:
Quote: |
6. The WebSphere MQ Client for VSE supports the following environment
variables:
MQCCSID
MQDATA
MQSERVER
MQTRACE
MQ_USER_ID
MQ_PASSWORD
These can be set using the setenv() C run-time call. The setenv()
call is only available to C language programs. To avoid this
limitation, the WebSphere MQ Client for VSE provides two additional
calls as follows:
void MQENTRY MQSETENV (PMQCHAR Name, /* Envir var name */
PMQCHAR Value, /* Envir var value */
MQLONG Length, /* Length of var value */
PMQLONG CompCode, /* Completion code */
PMQLONG Reason); /* Reason code */
and,
void MQENTRY MQGETENV (PMQCHAR Name, /* Envir var name */
PMQCHAR Value, /* Envir var value */
PMQLONG Length, /* Length of var value */
PMQLONG CompCode, /* Completion code */
PMQLONG Reason); /* Reason code */
These calls use OS linkage, and can be called, for example, as
follows:
CALL 'MQSETENV' USING WS-VAR-NAME
WS-VAR-VALUE
WS-VAL-LEN
WS-COMPCODE
WS-REASON.
In addition, MQ client environment variables can be set using the
Language Environment for VSE run-time option ENVAR. In batch, in
conjunction with ENVAR, you can use the LE variable _CEE_ENVFILE to
set one or more environment variables in a single file. The
_CEE_ENVFILE variable is not supported in CICS. |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Chiqid |
Posted: Wed May 30, 2007 10:29 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
Yes, I have read the readme - but it's still not clicking. For instance, if you want to use the CEE_ENVFILE to set one or more of the variables - what 'file' do you set that in - is it the MQDATA VSAM file? Is there a specific format for putting the environment variables in the file? Where is the data going to be put once it is retrieved ? i see no FD for that.
Also, I have never seen the 'prelink' example in step 7. That ran fine when I used the plain vanilla mqicgetc program - but - do I still need to run this program through the LE/Cobol compiler and lnkedt?
lastly - thanks for your help - i know I am stumbling around horribly. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 30, 2007 11:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'll take a moment to remind you that this is the deaf,dumb and blind trying to lead the blind.
I don't do anything with VSE or any mainframe systems at all.
All I'm doing is guessing!
That said, I think the CEE_ENVFILE is set in ENVAR. Whatever that is, which is apparently something in Language Environment... whatever that is.
And I'd guess that the format for the file is "var=value".
And I don't know what you mean by "where is the data going to be put once it's retrieved".
When I find myself trying to do something for which the documentation isn't clicking... I usually read the docs several times over. Then I try very small, simple tests of things to see if I get a better idea. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Chiqid |
Posted: Wed May 30, 2007 11:44 am Post subject: MQ Batch client configuration |
|
|
 Novice
Joined: 07 Nov 2006 Posts: 14
|
Yep....I think I have read this readme enough times where I could recite each step - even though it's being read with a teflon brain (nothing sticks). Believe me - I have been playing and digging and looking and reading....and praying .. that the VSE god of the MQ Client for VSE would give a sign of the correct direction to go with this. |
|
Back to top |
|
 |
|