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 » Mainframe, CICS, TXSeries » MQ Batch client configuration

Post new topic  Reply to topic Goto page 1, 2  Next
 MQ Batch client configuration « View previous topic :: View next topic » 
Author Message
Chiqid
PostPosted: Tue May 29, 2007 9:48 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Tue May 29, 2007 10:46 am    Post subject: Reply with quote

Yatiri

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

Try the library at:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.branding.doc/help_home_wmq.htm


_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
Chiqid
PostPosted: Tue May 29, 2007 10:54 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue May 29, 2007 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Chiqid
PostPosted: Tue May 29, 2007 11:35 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue May 29, 2007 11:40 am    Post subject: Re: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
Chiqid
PostPosted: Tue May 29, 2007 12:07 pm    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue May 29, 2007 12:59 pm    Post subject: Re: MQ Batch client configuration Reply with quote

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
View user's profile Send private message Send e-mail
Chiqid
PostPosted: Tue May 29, 2007 1:19 pm    Post subject: MQ Batch client configuration Reply with quote

Novice

Joined: 07 Nov 2006
Posts: 14

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24010051&loc=en_US&cs=utf-8&lang=en

This is the link that I am reading that tells me that I can retrieve messages from Websphere MQ on a Sun box to the mainframe. Am I reading this wrong or should I be able to retrieve messages in batch mode from the Sun box and process them on my mainframe?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 29, 2007 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Chiqid
PostPosted: Wed May 30, 2007 7:35 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 30, 2007 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Chiqid
PostPosted: Wed May 30, 2007 10:29 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 30, 2007 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Chiqid
PostPosted: Wed May 30, 2007 11:44 am    Post subject: MQ Batch client configuration Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » MQ Batch client configuration
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.