Posted: Tue Aug 03, 2004 9:28 am Post subject: OS 390 BROWSE GET OR DISTRUCTIVE GET
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.
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
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