Author |
Message
|
jeasterl |
Posted: Tue Sep 14, 2010 1:13 pm Post subject: Configuring Mirco Focus Cobol program to run as MQ Client |
|
|
 Acolyte
Joined: 24 Jun 2001 Posts: 65
|
We have a Micro Focus Cobol program that has been running on HP-UX and connecting to a local queue manager. A business decision was made to move all queue managers to Windows. We need to configure the application to run now as a WebSphere MQ client.
An AMQCLCHL.TAB file has been generated containing the new queue manager connection information, and we have been able to successfully connect to the Windows queue manager using the sample programs. However, each time we attempt to connect via the Micro Focus Cobol application, we receive a 2058.
Any help / suggestions would be greatly appreciated! |
|
Back to top |
|
 |
exerk |
Posted: Tue Sep 14, 2010 1:23 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Obvious question - has the application been recompiled against the client libraries, assuming it can be done with COBOL? (I'm no developer and a quick hack around in the manuals I didn't find anything explicit ). _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
jeasterl |
Posted: Tue Sep 14, 2010 1:40 pm Post subject: |
|
|
 Acolyte
Joined: 24 Jun 2001 Posts: 65
|
I am not developer either We "think" we have recompiled the code against the client libraries...been looking for something concete in the documentation that tells exactly what we should be doing. Still got the 2058.
Stay tuned |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Sep 14, 2010 1:55 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Does it say anywhere in your documentation whether a client connection is supported in COBOL?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 14, 2010 4:11 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I deny that I have done this before.
But you should look at the LOAD LIBRARY statement or whatever it is. |
|
Back to top |
|
 |
zonko |
Posted: Tue Sep 14, 2010 10:01 pm Post subject: |
|
|
Voyager
Joined: 04 Nov 2009 Posts: 78
|
Quote: |
Compiling 32 bit programs:
$ cob32 -xv amqsput.cbl -L /opt/mqm/lib -lmqmcb Server for COBOL
$ cob32 -xv amqsput.cbl -L /opt/mqm/lib -lmqicb Client for COBOL
$ cob32 -xtv amqsput.cbl -L /opt/mqm/lib -lmqmcb_r Threaded Server for COBOL
$ cob32 -xtv amqsput.cbl -L /opt/mqm/lib -lmqicb_r Threaded Client for COBOL
Compiling 64 bit programs:
$ cob64 -xv amqsput.cbl -L /opt/mqm/lib64 -lmqmcb Server for COBOL
$ cob64 -xv amqsput.cbl -L /opt/mqm/lib64 -lmqicb Client for COBOL
$ cob64 -xtv amqsput.cbl -L /opt/mqm/lib64 -lmqmcb_r Threaded Server for COBOL
$ cob64 -xtv amqsput.cbl -L /opt/mqm/lib64 -lmqicb_r Threaded Client for COBOL |
How hard can it be?
This was cunningly hidden in the APG, Building your application on HPUX, Preparing COBOL programs.
Did you look in the manual at all? |
|
Back to top |
|
 |
|