Mq Error Reason Code 2018
Contents |
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support
MQSeries.net Forum Index » Mainframe, CICS, TXSeries » 2018 Error in MQPUT 2018 Error in MQPUT « View previous topic :: View next topic » Author Message suresh_shahukaru Posted: Sat Apr 22, 2006 10:41 pm Post subject: 2018 Error in MQPUT NoviceJoined: 22 Apr 2006Posts: 17 I have a PL/1 code which does the following: 1. Gives a call to MQCONN and gets the HCONN (conn. handle) 2. Gives a call to MQOPEN to open the queue. 3. Reads IMS DB, formats the data into a message 4. Puts the formatted message onto the Queue. performs http://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.tro.doc/q040910_.htm steps 3 and 4 until all the IMS DB records are done. Problem: First MQPUT is successful, from the second MQPUT, its gives the error 2018 saying invalid connection handle but code wise everything looks fine. Given the print of HCONN and the binary value is proper and it didnt got lost. I tried doing only one put and then MQCLOSE, at that time also, the MQPUT was successful and MQCLOSE failed with the same reason code 2018. Please help me... Back to top wschutz Posted: Sun http://www.mqseries.net/phpBB2/viewtopic.php?t=28995&sid=68d82311d0c0d774b49914ee5d726a18 Apr 23, 2006 4:15 am Post subject: Jedi KnightJoined: 02 Jun 2005Posts: 3316Location: IBM (retired) Is this new code or has this been working and now doesn't? You are aware that after taking a syncpoint, the IMS adapter invalidates the connection and object handles, except in a batch-oriented BMP. http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/imsapps.htm_________________-wayne Back to top suresh_shahukaru Posted: Sun Apr 23, 2006 4:49 am Post subject: NoviceJoined: 22 Apr 2006Posts: 17 It is a new program and we are using MQ for the first time. Such a scenario is there for MQGET as well where there are multiple MQGETs after a MQCONN and MQOPEN and it is working fine. For MQPUT, we are just giving the OPTIONS as SET_ALL_CONTEXT Please suggest what shall I do? Do I need to code using MQPUT1? Back to top suresh_shahukaru Posted: Sun Apr 23, 2006 5:24 am Post subject: NoviceJoined: 22 Apr 2006Posts: 17 Multiple MQGETs in the same unit of work is working fine because we didnt have any IMS commit using IOPCB in that program But in the multiple MQPUT program, we have got IMS commit for every MQPUT where the IMS thinks that the unit of work is done and closes all the open handles. Now, if I still want to have the IMS Commit, do I need to do the following in loop or is there any other approach that I can follow: MQCONN MQPUT1 IMS Commit MQDISC not required as IMS Commit will anyway closes all the open handles. Please validate this statement. Back to top wschutz Posted: SFORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo http://www.tek-tips.com/viewthread.cfm?qid=195527 Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining http://ibm.software.websphere.mq.narkive.com/CvC9izT1/unable-to-mq-commit-compcode-2-reason-2018 you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To mq error This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. IBM: MQSeries Forum at Tek-Tips HomeForumsProgrammersEAI Distributed/Component ProgrammingIBM: MQSeries Forum 2018 Reason on MQOPEN thread332-195527 Forum Search FAQs Links MVPs 2018 Reason on MQOPEN 2018 Reason on MQOPEN troemen mq error reason (Programmer) (OP) 18 Jan 02 16:17 I'm writing an application on Windows NT, using VisualAge COBOL and MQ V5.2.When I step thru the program I can see that the MQCONN works properly (I get zero in the completion code and reason and a valid HCONN).When I attempt to use the HCONN that I get back from the MQCONN on the MQOPEN I always get a 2018 reason back.I don't understand why I get a HCONN error when the initial connection worked properly?Thanks!Tim RE: 2018 Reason on MQOPEN pmeekin (Programmer) 21 Jan 02 02:59 Post a fragment of your code showing the MQOPEN and MQGET - are you sure you're using the correct data types etc?Cheers,Paul RE: 2018 Reason on MQOPEN troemen (Programmer) (OP) 21 Jan 02 08:02 All of the fields are defined as PIC S9(9) BINARY.(I've also tried defining them as PIC S9(9) COMP-5.)I am checking the completion and reason - I've just omitted that code here.Here's the Connect:MOVE MQTMC-QMGRNAMETO WS-QM-NAME-CONNECT.MOVE MQCC-OKTO COMPLETION-CODE.MOVE MQRC-NONETO CON-REASON.>>CALLINT CDECLCALL 'MQCONN' USING WS-QM-NAME-AREAWS-HCONNCOMPLETION-CODECON-REASON.>>CALLINT SYSTEMHere's the open:COMPUTE WS-Q-OPEN-OPTIONS= MQOO-INPUT-S
is no issues with the QueueManager but in between...there are error seen in the logs of the client application saying that Unable to MQ commit (CompCode=2, Reason=2018)this error is seen rarely but its re-occuring.As far as my knowledege there is some MQCONN network issue not exactly a MQ error, but I want to know what can be done to fix this issue.I have HP_UX 11.1 OS and MQ 5.3.Can someone help on this it will be of great..Thanks. Phil Willoughby 2007-08-20 09:46:08 UTC PermalinkRaw Message Here are some possibilities, this is by no means an exhaustive list:* You're trying to commit after calling MQDISC for that HCONN* You're trying to commit from a different thread and didn't useMQCNO_HANDLE_SHARE_... when you called MQCONNX (or you called MQCONN).Regards,Phil Willoughby--Software Development Engineer - IBM WebSphere MQ for z/OSIBM Certified System Administrator - WebSphere MQ V6.0IBM Certified Solution Designer - WebSphere MQ V6.0IBM Certified SOA Solution Designer r***@yahoo.com 2007-08-20 11:19:48 UTC PermalinkRaw Message Hi Phil,I am very new to MQ, can you suggest me exactly how can I rectify it, that will of great help.Thanks.. Phil Willoughby 2007-08-20 11:59:01 UTC PermalinkRaw Message Post by r***@yahoo.comI am very new to MQ, can you suggest me exactly how can I rectify it, that will of great help.I can't tell you how to fix it because I don't know what the problem is.Regards,Phil Willoughby--Software Development Engineer - IBM WebSphere MQ for z/OSIBM Certified System Administrator - WebSphere MQ V6.0IBM Certified Solution Designer - WebSphere MQ V6.0IBM Certified SOA Solution Designer r***@yahoo.com 2007-08-21 05:05:49 UTC PermalinkRaw Message Thanks Phil. I will try to solve it. 4 Replies 216 Views Switch to linear view Disable enhanced parsing Permalink to this page Thread Navigation r***@yahoo.com 2007-08-20 07:17:57 UTC Phil