| View previous topic :: View next topic |
| Author |
Message |
siva_marthala Beginner
Joined: 20 Mar 2007 Posts: 7 Topics: 2 Location: Pune
|
Posted: Wed Aug 06, 2008 12:10 am Post subject: |
|
|
I am very new to development and mq series. earlier worked as production support.
My basic query is i have to write a COBOL program for copying one MQ queue to another MQ queue read non-destructively. i have given input and output mq queue names.
could any one having sample code or sample program, please send me the same.
Thanks
Siva... |
|
| Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
|
| Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Aug 06, 2008 8:21 am Post subject: |
|
|
Check out the MQ utility CSQUTIL which has functions to copy messages from one queue to another. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
| Back to top |
|
 |
siva_marthala Beginner
Joined: 20 Mar 2007 Posts: 7 Topics: 2 Location: Pune
|
Posted: Mon Aug 11, 2008 3:25 am Post subject: |
|
|
I am getting W00-COMPCODE as 2 and W00-REASON 2018 when calling MQGET.
Any idea to resolve please.
COMPUTE MQGMO-OPTIONS = MQGMO-NO-WAIT +
MQGMO-CONVERT +
MQGMO-ACCEPT-TRUNCATED-MSG
MOVE MQMI-NONE TO MQMD-MSGID
MOVE MQCI-NONE TO MQMD-CORRELID
CALL W00-MQGET USING W00-HCONN
W00-HOBJ
MQMD
MQGMO
MQGMO-BROWSE-FIRST
W00-BUFFERLEN
W00-MSGLENGTH
W00-COMPCODE
W00-REASON |
|
| Back to top |
|
 |
|
|
|