|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Batch job to run MQ program |
« View previous topic :: View next topic » |
Author |
Message
|
neo_bond_007 |
Posted: Mon Aug 06, 2007 8:50 pm Post subject: Batch job to run MQ program |
|
|
Newbie
Joined: 31 Jul 2007 Posts: 1
|
Hi all,
I want to run a batch cobol program that will put a message on a queue.I am able to compile the pgm.But when i try to run it.It abends with a SOC1.The MQ command at which it abends is MQOPEN.The follwing is the code:
MOVE MQOT-Q TO MQOD-OBJECTTYPE.
MOVE WS-OUTPUT-Q TO MQOD-OBJECTNAME.
DISPLAY 'MQOO-OUTPUT' MQOO-OUTPUT.
COMPUTE OPI-OPTIONS = MQOO-OUTPUT +
MQOO-FAIL-IF-QUIESCING.
DISPLAY 'OPI-OPTIONS' OPI-OPTIONS.
==>> abends here <<===
CALL 'MQOPEN' USING CON-HANDLE
MQOD
OPI-OPTIONS
OPI-Q-HANDLE
COMP-CODE
REASON-CODE.
Also if you have a compile JCL for compiling MQ batch cobol pgm.let me know.
Thanks for help |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Aug 06, 2007 9:57 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
There are a lot of samples that come with MQ, including conmpile and link instructions. Have a look at the application programmers guide and the application programmers reference manuals.
Take one of the samples, compile it and run it. If this works, then continue with your own program. _________________ Regards, Butcher |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Aug 07, 2007 6:53 am Post subject: |
|
|
Guest
|
Some obvious questions:
Has this application ever worked before? If so, what changes did you make?
Is this your first batch MQ program?
Do any other batch MQ programs work? If so, look at the sysout from a compile and linkedit. Note any differences.
Did you linkedit your program with the MQ batch stub (CSQBSTUB)? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|