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 » IBM MQ API Support » MQSeries on Pc-cobol on NT

Post new topic  Reply to topic
 MQSeries on Pc-cobol on NT « View previous topic :: View next topic » 
Author Message
vandana
PostPosted: Sun Jan 13, 2002 9:57 pm    Post subject: Reply with quote

Acolyte

Joined: 01 Dec 2001
Posts: 74

Hi,

i tried compiling the amq0put0.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.

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
Then i removed VALUE NULL and just kept the declaration as
POINTER(for the four variables )in the copy books.

I've copied all the copy books and the library files
in the same path as that of the cbl files so that the problem
of path of copy books and library files does not arise.

Then I compiled the program using the following command
cobol amq0put0;
The compilation now worked fine.

Then I linked the program using the following command
link amq0put0.obj;mqmcb32



The exe file gets generated and when i run it,
it asks me the Name of the target Queue but further
stops when the MQConn statement is encountered.
The following is the error I get.

D:MQSeriestoolscobolsamples>amq0put0
AMQ0PUT0 start
Please enter the name of the target queue
Queue1


Failed to find program MQCONN.EXE
Run time error number: 173
What could be the reason?


Thanks and Regards,
Vandana



Back to top
View user's profile Send private message
StefanSievert
PostPosted: Mon Jan 14, 2002 11:53 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Vandana,
sorry, forgot to reply to your last post.
How are you calling the MQ functions?
Have you coded

CALL 'MQCONN' USING ..... or

CALL MQCONN-CALL USING .... ,

where MQCONN-CALL is a PIC X( containing the string 'MQCONN'?

As far as I remember, I have always used the first version (static call). It looks like you have used the dynamic call and the runtime cannot resolve to an executable named MQCONN.EXE (because there is no executable with this name).
If you link with mqmcb32.lib and use static calls (CALL 'MQCONN' ...), the function should be resolved to the correct DLL, which is MQICCB32.DLL if I am not mistaken.
Give it a try!
Stefan

NB. I'll see if I can dig out the project files I've used for that customer project two years ago. I hope I've stored them in persistent mode...

_________________
Stefan Sievert
IBM Certified * MQSeries

[ This Message was edited by: StefanSievert on 2002-01-14 11:55 ]
Back to top
View user's profile Send private message
vandana
PostPosted: Mon Jan 14, 2002 9:41 pm    Post subject: Reply with quote

Acolyte

Joined: 01 Dec 2001
Posts: 74

Hi,
I'm using call MQConn i.e static call.
What is resolving with a dll ?
I'm not very well versed with the diffrent aspects of cobol compilation-linking .
but i need to implement it in cobol too.
The options that i tried .. were given in the ibm manuals .
The link for the same is

http://www4.ibm.com/software/ts/mqseries/library/manuals/csqzal/CSQZAL58.HTM#Header_514

The docs suggest that the compilation
has to be done using:
using
cobol amq0put0 LITLINK;
and linked using :

cbllink amq0put0.obj mqmcb32.lib

however i do not have cbllink.exe.
so i tried linking the foll way :

link amq0put0.obj; mqmcb32.lib

but i gives me the following error.

Microsoft (R) Segmented-Executable Linker Version 5.02.05
Copyright (C) Microsoft Corp 1984-1988. All rights reserved.


AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQOPE' : unresolved external
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQPU' : unresolved external
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQDIS' : unresolved external
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQCON' : unresolved external
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQCLOS' : unresolved external

so i compiled without the LITLINK option
as
cobol amq0put0;

and link using:
link amq0put0.obj; mqmcb32.lib

but then i get the runtime error as
mentioned above.
i.e MQConn.exe not found.

Thanks and Regards,
Vandana


_________________


[ This Message was edited by: vandana on 2002-01-14 22:51 ]

[ This Message was edited by: vandana on 2002-01-14 22:53 ]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQSeries on Pc-cobol on NT
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.