MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

unable to Put Message in the Queue
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
siva_marthala
Beginner


Joined: 20 Mar 2007
Posts: 7
Topics: 2
Location: Pune

PostPosted: Wed Aug 06, 2008 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Aug 06, 2008 1:45 am    Post subject: Reply with quote

this is a link to ibm's websphere site, which include MQS:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.branding.doc/help_home_wmq.htm


This is the IBM library server, where you would perform a search for MQS:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/library

also, the link that BOB Buxton provided is excellent.

The code that you are asking for can be found in the documentation.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Aug 06, 2008 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
siva_marthala
Beginner


Joined: 20 Mar 2007
Posts: 7
Topics: 2
Location: Pune

PostPosted: Mon Aug 11, 2008 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group