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 » How to run a batch job in mainframe to post messages to MQ

Post new topic  Reply to topic
 How to run a batch job in mainframe to post messages to MQ « View previous topic :: View next topic » 
Author Message
ashwats
PostPosted: Wed Sep 24, 2003 10:52 am    Post subject: How to run a batch job in mainframe to post messages to MQ Reply with quote

Newbie

Joined: 24 Sep 2003
Posts: 2

I am trying to run a COBOL program that posts messages to a queue.
The queue has been already setup and tested.
But when I am running the job I am getting SOC1. Is there any specific data sets to point to ? Any help is appreciated.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Sep 24, 2003 11:45 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

This probably isn't an MQ problem.

A S0C1 sounds like you are overwriting your code with something. Maybe data. Or taking a wild branch.

I'd follow you 'normal' debugging techniques to find out where the exception is happening.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
ashwats
PostPosted: Thu Sep 25, 2003 5:30 am    Post subject: The SOC1 is happening at MQOPEN Reply with quote

Newbie

Joined: 24 Sep 2003
Posts: 2

The SOC1 is happening when making the call to MQOPEN

My doubt is, is it not able to find the MQOPEN program in the datasets I am giving.

I am pointing to the following datasets, (not sure if these names will be same in all installations)

SYS1.SCSQAUTH,DISP=SHR
SYS1.SCSQANLE,DISP=SHR
MQSERIES.SCSQLOAD,DISP=SHR
SYS1.SCEERUN,DISP=SHR
SYS1.SCSQLOAD,DISP=SHR

But if there is a specfic member name that should be pointed to let me know.

Thank you
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Sep 25, 2003 10:23 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Did you get a return code 0 from your link step? In my experience you will get an 0C1 if you include the wrong stubs for the MQ calls.

Your site system program should be able to help you out with which ones to use. If it is just batch I believe it is CSQQSTUB you need to include in your link step. Check the Application programmers Guide (or is it Reference) and it will tell you for sure.
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Thu Sep 25, 2003 11:25 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

CSQQSTUB - IMS
CSQBSTUB - Batch
CSQCSTUB - CICS


http://www-3.ibm.com/software/integration/mqfamily/library/manualsa/csqzal05/csqzal0552.htm
_________________
Regards,
Gina

IBM Certified MQSeries Specialist
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » How to run a batch job in mainframe to post messages to MQ
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.