Author |
Message
|
RogerLacroix |
Posted: Wed May 16, 2001 3:01 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
All:
For those looking for sample MQSeries code (C, COBOL, JAVA), I have posted a variety of samples on my web site at:
http://www.geocities.com/capitalware/mqseries.html
later
Roger...
[ This Message was edited by: RogerLacroix on 2001-12-10 11:10 ] |
|
Back to top |
|
 |
bduncan |
Posted: Wed May 16, 2001 3:10 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Thanks Roger,
I had to spend time writing many small MQ utility programs similar to yours when I first started working with MQSeries; I wish I had known about your site back then. It is great to see a bunch of these in one place; it will save others a lot of time from having to code some of the more basic tools, and will definitely help newbies understand the various APIs faster...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bduncan |
Posted: Wed May 16, 2001 3:17 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
As I mentioned in the previous reply I have written many of these same tools, but in fact have written them in Perl, which I noticed you didn't have on your site. If there is anyone who would be interested in seeing some basic MQ utilities written in Perl I would be willing to post links to the source code... Any takers?
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed May 16, 2001 3:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Sorry, I don't know Perl. But I would be happy to host your samples (with credits of course) on my web site.
later
Roger... |
|
Back to top |
|
 |
rtgordon |
Posted: Thu Jun 28, 2001 10:51 am Post subject: |
|
|
Apprentice
Joined: 27 Jun 2001 Posts: 34 Location: Lewisville, TX
|
I would be interested in looking at the Perl scripts. I am still evaluating various methods of messaging. Perl as a cgi would be a pretty easy installation, I imagine.
gordon |
|
Back to top |
|
 |
vandana |
Posted: Sun Dec 09, 2001 11:32 pm Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
Hi,
I'm working on MQseries on nt 4.0.
I tried to work on the sample cobol
pgms on pc.the compilaion and linking works fine but while running i get an error
saying MQConn.exe not found.
what could be the reason?
are there any additional support files that i need?
Reagrds,
vandana
|
|
Back to top |
|
 |
vandana |
Posted: Sun Dec 09, 2001 11:39 pm Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
Hi,
I'm working on MQseries on nt 4.0.
I tried to work on the sample cobol
pgms on pc.the compilaion and linking works fine but while running i get an error
saying MQConn.exe not found.
what could be the reason?
are there any additional support files that i need?
Reagrds,
vandana
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Dec 10, 2001 11:10 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Sounds like you did not link your program correctly. If you included mqm.lib (server version) on the link step then the linker should have resolved what to execute for the MQCONN statement.
How are you compiling and linking your program? IDE or makefile?
later
Roger... |
|
Back to top |
|
 |
vandana |
Posted: Mon Dec 10, 2001 9:36 pm Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
I compile the program
by the foll step
prompt> cobol abc.cbl;
for linking
prompt>link abc;
what is it that we need to do at the
time of linking?
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Dec 10, 2001 10:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
No offense but I think you need to read the manual or at least read the sample code you downloaded.
In the code that you downloaded there was a makefile for Fujitsu COBOL. It included the following line:
LINK.EXE /OUT:MQSERVER.EXE MQSERVER.OBJ ..MQMCB32.LIB f3bicimp.lib libc.lib
As you can see, you need to add 3rd party LIB files at the end of the link statement.
later
Roger...
http://www.geocities.com/capitalware/mqseries.html |
|
Back to top |
|
 |
vandana |
Posted: Tue Dec 11, 2001 2:21 am Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
i did try compiling the amq0put.cbl.
using Micro Focus COBOL/2 Version 1.1.0 L2.0
compiler.
i get the following compilation error.
i verified that these four variables were
declared in the following copy books.
1)CMQODV.CPY
2)"CMQPMOV.CPY".
do i need to compile it using some other
compiler?
earlier i had commented
out the four variables(in the copy books) just to see whether
the program runs but it gave me errors
in running(i.e MQConn.exe not found)
What could be the reason?
-------------------------------------
1608 15 MQOD-OBJECTRECPTR POINTER VALUE NULL.
** 44-S************************************************
** Literal expected
1610 15 MQOD-RESPONSERECPTR POINTER VALUE NULL.
** 44-S************************************************
** Literal expected
1779 15 MQPMO-PUTMSGRECPTR POINTER VALUE NULL.
** 44-S***********************************************
** Literal expected
1781 15 MQPMO-RESPONSERECPTR POINTER VALUE NULL.
** 44-S***********************************************
** Literal expected
* Checking complete - errors found
|
|
Back to top |
|
 |
vandana |
Posted: Tue Dec 11, 2001 9:57 pm Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
Which is the compiler that i sould use to compile the cobol programs on pc.
i'm working on nt 4.0
|
|
Back to top |
|
 |
|