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 » OS 390 BROWSE GET OR DISTRUCTIVE GET

Post new topic  Reply to topic
 OS 390 BROWSE GET OR DISTRUCTIVE GET « View previous topic :: View next topic » 
Author Message
yonker02
PostPosted: Tue Aug 03, 2004 9:28 am    Post subject: OS 390 BROWSE GET OR DISTRUCTIVE GET Reply with quote

Newbie

Joined: 03 Aug 2004
Posts: 2

Hi,
I saw few messages related to syncpoint in my search results. However, I am unable to solve my problem.

I am running a batch MQ on MVS System.
OPEN Options are as follows
MQOO_BROWSE +
MQOO_FAIL_IF_QUIESCING

I am passing an read option from the Job. Browse option is being used for testing so that same msgs can be tested by called program. D will be used when there is no need to test and distructive read can be used.

IF READ_TYPE = 'D'
THEN GETMSGOPTS.OPTIONS = MQGMO_SYNCPOINT +
MQGMO_NO_WAIT +
MQGMO_ACCEPT_TRUNCATED_MSG +
MQGMO_CONVERT +
MQGMO_FAIL_IF_QUIESCING;

IF READ_TYPE = 'B'
THEN GETMSGOPTS.OPTIONS = MQGMO_NO_WAIT +
MQGMO_BROWSE_FIRST +
MQGMO_ACCEPT_TRUNCATED_MSG +
MQGMO_CONVERT +
MQGMO_FAIL_IF_QUIESCING;

After first GET Call again I am setting up the options to
IF READ_TYPE = 'B'
THEN GETMSGOPTS.OPTIONS = MQGMO_NO_WAIT +
MQGMO_BROWSE_NEXT +
MQGMO_ACCEPT_TRUNCATED_MSG +
MQGMO_CONVERT +
MQGMO_FAIL_IF_QUIESCING;

When I run program with 'B' it runs fine
With 'D' I am getting following error.

***AN ERROR OCCURRED IN GET: COMPLETION CODE = 2 REASON CODE = 2037

Can you help?
Thanks
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Aug 03, 2004 9:36 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

2037 means the queue is not open for Input. Or are you using 2 different paths for the MQOPEN call, and are accidently not opening the queue for Input when D is specified? Or you are trying to MQOPEN the queue for input in all cases, but the call is failing for some reason soem time and you are not catching that error?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
yonker02
PostPosted: Tue Aug 03, 2004 9:49 am    Post subject: Reply with quote

Newbie

Joined: 03 Aug 2004
Posts: 2

Thanks for yor response. I opened the queue in Shared mode and both options worked.
Thanks for your input
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » OS 390 BROWSE GET OR DISTRUCTIVE GET
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.