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 » Mainframe, CICS, TXSeries » Batch job to run MQ program

Post new topic  Reply to topic
 Batch job to run MQ program « View previous topic :: View next topic » 
Author Message
neo_bond_007
PostPosted: Mon Aug 06, 2007 8:50 pm    Post subject: Batch job to run MQ program Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Mon Aug 06, 2007 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 07, 2007 6:53 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Batch job to run MQ program
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.