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 IndexIBM MQ API SupportHow doing MQOPEN

Post new topicReply to topic Goto page 1, 2  Next
How doing MQOPEN View previous topic :: View next topic
Author Message
melissa
PostPosted: Wed Jun 07, 2006 3:19 am Post subject: How doing MQOPEN Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

Hello,

someone know how to launch MQOPEN on aix and sun hosts ???

Mélissa
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Jun 07, 2006 3:21 am Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

yes....

do you mean the mqopen api call? then you have to have a program. check the application programmers guide and the application programmers reference.

or check out the samples. but you dont "mqopen" from the command line....
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 07, 2006 3:24 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I think you should concentrate your attention on the Application Programming Guide, Application Progamming Reference and the samples supplied (in /opt/mqm/samp I think?) as a first move.

Unless you're tried all that and are getting a specifc problem not covered in the estemed IBM publications?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fschofer
PostPosted: Wed Jun 07, 2006 3:27 am Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

using which program language ?

Search here for MQOPEN might help.
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

Grreetings
Frank
Back to top
View user's profile Send private message Send e-mail
melissa
PostPosted: Wed Jun 07, 2006 3:36 am Post subject: Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

Once I have found the program and I know the library, what must I do?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 07, 2006 3:54 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Finding the program should be quite easy - MQOPEN is an MQI call you use in your own application code!

Are you asking about the MQOPEN parameters? They're in the Reference.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
melissa
PostPosted: Wed Jun 07, 2006 4:26 am Post subject: Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

i don't know how to use the MQOPEN code....
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 07, 2006 4:33 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

melissa wrote:
i don't know how to use the MQOPEN code....


This is going to pose a serious impediment to writing an MQ-aware application...

Do you mean you don't know what it does or where to use it, in which case the Application Programming Guide is your friend (hint: connect -> open -> do stuff -> close -> disconnect ) or you don't know how to use the call in terms of parameter options, in which case the Reference lays them out in some detail.

Or do you mean something else again & I have the wrong end of the wrong stick?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
melissa
PostPosted: Wed Jun 07, 2006 5:46 am Post subject: Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

As you say it, I don't know how to use the call in terms of parameter options...Can someone please help me, I have some test to do quickly
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Jun 07, 2006 5:50 am Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
Can someone please help me


I don't mean to be rude but they already have. They have told you which manual you must read.

You ain't going to get anywhere without reading some of the basics and this is pretty darn basic I have to say.

If you need sample code then there is plenty out there and the MQ API calls (MQOPEN, MQCLOSE) statements are platform independant, but where the sample code is isn't...so what platform are you using?
Back to top
View user's profile Send private message
melissa
PostPosted: Wed Jun 07, 2006 6:50 am Post subject: Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

I'm using AIX and SUN platform....
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Jun 07, 2006 10:00 pm Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

Quote:
I don't know how to use the call in terms of parameter options


then the programming reference manual is your friend. it tells you what parameters to use and how to set them for the various MQ API calls.
But you should also read the application programming guide too to get some knowledge and to understand what you do.

for aix the samples are located in /usr/mqm/samp (source) and /usr/mqm/samp/bin (binaries), on solaris it is /opt/mqm/samp and /opt/mqm/samp/bin.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
melissa
PostPosted: Wed Jun 07, 2006 11:55 pm Post subject: Reply with quote

Novice

Joined: 06 Jun 2006
Posts: 19

Thanks for the directories, but how to use this portion of code to make an MQCONN CALL please :

MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */



Mélissa
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 08, 2006 12:15 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

melissa wrote:
Thanks for the directories, but how to use this portion of code to make an MQCONN CALL please :

MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */

char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */


I'd pick one (preferably a complete one) and plug it into a piece of source code.

Look at the samples.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Jun 08, 2006 5:07 am Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
strcpy(QMName,”SampleQM”);


In your sample it is looking for a queue manager named SampleQM

I still recommend reading those manuals....they are pretty useful.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum IndexIBM MQ API SupportHow doing MQOPEN
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.