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 » MQPUT JCL. Where to put the actual message?

Post new topic  Reply to topic Goto page Previous  1, 2
 MQPUT JCL. Where to put the actual message? « View previous topic :: View next topic » 
Author Message
CryptoSixFour
PostPosted: Wed Nov 21, 2012 11:13 am    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

Sorry for getting back to you so late. Turns out that I don't have access to that particular data set even after asking our security admin. I did manage to get the MQCONN and the MQOPEN to succeed but the message didn't show on the queue though.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 21, 2012 11:44 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9405
Location: US: west coast, almost. Otherwise, enroute.

And, looking at the sysout from the batch job, what was the reason code or condition code?

Feel free to post the output here.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
CryptoSixFour
PostPosted: Wed Nov 21, 2012 12:22 pm    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

The Reason Code I got was Zero.

The relevant output was:

DTM1459I 2012.326 15:13:44 JOB 0000 REQUEUED TO CLASS=G
ICH70001I USER LAST ACCESS AT 15:12:38 ON WEDNESDAY, NOVEMBER 21, 2012
IEF236I ALLOC. FOR USER PUTMSGS
IEF237I JES2 ALLOCATED TO SYSPRINT
IEF237I JES2 ALLOCATED TO SYSOUT
IEF237I JES2 ALLOCATED TO SYSDBOUT
IEF237I JES2 ALLOCATED TO SYSIN
IEF142I USER PUTMSGS - STEP WAS EXECUTED - COND CODE 0000
IEF285I USER.0000.J0136570.D0000102.? SYSOUT
IEF285I USER.0000.J0136570.D0000103.? SYSOUT
IEF285I USER.0000.J0136570.D0000104.? SYSOUT
IEF285I USER.0000.J0136570.D0000101.? SYSIN
Sample CSQ4BCP1 start
target topic is MY.FIRST.QUEUE
Sample CSQ4BCP1 end
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 21, 2012 12:41 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9405
Location: US: west coast, almost. Otherwise, enroute.

What results were you expecting?
Why were you expecting those results?
How did you verify those results?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
bob_buxton
PostPosted: Wed Nov 21, 2012 2:27 pm    Post subject: Reply with quote

Master

Joined: 23 Aug 2001
Posts: 266
Location: England

Did you have a subscriber application running? (CSQ4BCP2-4 are sample subscriber programs)
Why do you expect a message to be left on the queue?
Have You specified that you want retained Publications?
Have you read the Publish/Subscribe User Guide?
_________________
Bob Buxton
Ex-Websphere MQ Development
Back to top
View user's profile Send private message
CryptoSixFour
PostPosted: Fri Nov 23, 2012 9:02 am    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

Quote:

What results were you expecting?
Why were you expecting those results?
How did you verify those results?

I just wanted to see that the message was successfully published. I have a subscriber application that checks for this.

bob_buxton wrote:
Did you have a subscriber application running? (CSQ4BCP2-4 are sample subscriber programs)
Why do you expect a message to be left on the queue?
Have You specified that you want retained Publications?
Have you read the Publish/Subscribe User Guide?


I have my java viewer application running that subscribes to publishers. It sees published messages.

I expect a message to be left on the queue since i put in the specific parameters. Retained publications?

I read some of the guide but not much.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 23, 2012 9:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

CryptoSixFour wrote:
I expect a message to be left on the queue since i put in the specific parameters. Retained publications?


What specific parameters? A retained publication doesn't mean it'll be left on the queue.

CryptoSixFour wrote:
I read some of the guide but not much.


So you thought you'd try this without bothering to waste any of your valuable time by reading the documentation that explains all of this? Then rather than realizing that the problems you were experiencing it were because you didn't know what you were doing and increasing your knowledge by reading the documentation, you thought it would be a better use of your valuable time to just post here because our time is intrinsically less valuable than yours?

Gosh you must be both important and really, really busy. I struggle to understand how anybody would dare to restrict your access to anything. Has the system admin in question been flogged?


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Nov 23, 2012 10:52 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9405
Location: US: west coast, almost. Otherwise, enroute.

CryptoSixFour wrote:
Sorry for getting back to you so late. Turns out that I don't have access to that particular data set even after asking our security admin. I did manage to get the MQCONN and the MQOPEN to succeed but the message didn't show on the queue though.

This makes no sense. If you can execute the program, then you have access to the dataset that contains the program.

It seems clear that you are new to z/OS, as well as new to WMQ.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
CryptoSixFour
PostPosted: Thu Nov 29, 2012 10:19 am    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

I'm sorry for wasting all your time. But as a result of the troubleshooting, i have definitely learned a lot more in regards to publishing and subscribing which i think has helped me learn more in the longer run. I'm gonna definitely read more of the guide though to have a much further understanding.

I am new to all this.

But I did finally manage to get access to these data sets, after all. I'm currently working on changing up the COBOL programs which does puts of the one i put in. Just got to recompile them on z/OS.

To test to make sure i'm able to successfully reach the queue...I tried out the CSQ4BVK1 program but i'm getting the Return Code of 2085 and completion code of 2. When putting in the topic, does it need to have specific trailing characters afterward?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 29, 2012 10:36 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9405
Location: US: west coast, almost. Otherwise, enroute.

CryptoSixFour wrote:
I tried out the CSQ4BVK1 program but i'm getting the Return Code of 2085 and completion code of 2. When putting in the topic, does it need to have specific trailing characters afterward?

Did you research ReasonCode 2085? What does it mean?

Go to google. Type 'mqrc 2085' in the search text box.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
CryptoSixFour
PostPosted: Tue Dec 04, 2012 12:55 pm    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

Quote:

Did you research ReasonCode 2085? What does it mean?

Go to google. Type 'mqrc 2085' in the search text box.

Hi Bruce, it means that it can't find the object name associated with the queue manager. Turned out that the issue was associated with the program being more catered to queues vs topics.

So i decided to take the sample of CSQ4BVP1(publisher), compile and linked a copy of it and ran it. But i noticed that when i tried to a MQCONN, it didn't get past it since HCONN, COMPLETION CODE, and CON-REASON were 000000 as their initial values.

Do these values change once a MQCONN happens?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 04, 2012 1:56 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

CryptoSixFour wrote:
Do these values change once a MQCONN happens?


Not if you're running under CICS. The name of that sample indicates it's batch, but you don't say where you're actually running your version.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 05, 2012 6:31 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9405
Location: US: west coast, almost. Otherwise, enroute.

CryptoSixFour wrote:
... CON-REASON were 000000 as their initial values.
Do these values change once a MQCONN happens?

You need to begin your study of the WMQ Application Programming Reference, and the use of the MQI calls. More specifically, you need to understand that each call returns both a CompletionCode and ReasonCode, and what they mean.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
CryptoSixFour
PostPosted: Fri Dec 14, 2012 9:23 am    Post subject: Reply with quote

Novice

Joined: 31 Oct 2012
Posts: 12

Thank you all for your help. I've learned all from this. Reason Code is the code that MQ returns based on the MQI calls.


Turned out the publisher application did publish, we just had problems with our subscriber. We've narrowed down the issue. Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » MQPUT JCL. Where to put the actual message?
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.