Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem using MQGET and MQPUT same Queue (isereis / AS/400 / rpgle)

Problem using MQGET and MQPUT same Queue (isereis / AS/400 / rpgle)

Problem using MQGET and MQPUT same Queue (isereis / AS/400 / rpgle)

Dear Friends,

I have'nt code program which read and put the message form/to same queue. (Server program)

The requirnment is that client will send the request message in Queue A, and Server need to read message from Queue A and response to Queue A.

The logic i am looking is to filter incomming messages and ignore the response message with is lying the Queue A.

I have tried below mention guideline in MQSeries document, but it is reading all messages incomming as well response.

GMMO (10-digit signed integer)
Options controlling selection criteria used for MQGET" with various option,

Please help me to solve this, and if possible help me to identify sample from to be used for the above requirnment from QMQMSAMP/QRPGLESRC so i can uitilize that.

Thanks in Advance.


RE: Problem using MQGET and MQPUT same Queue (isereis / AS/400 / rpgle)

In case ur ar looking or someone faces a similar issue, its a bad design practice to Put and read from the same queue. Use 2 queues instead 1 for request and 1 for reply all IBM manuals solicit the same.

Try MQ browse message and see the MQMD value Message type =2 to get the message under the cursor for that application has to put the message as a request response type at the first place.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close