Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MQGET fails with 2019

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sat Mar 03, 2012 5:49 pm    Post subject: MQGET fails with 2019
Reply with quote

Hi,

I have a CICS program which need to open get and close a message and for mq we have a seperate program to handle the open ,get,close functions and while executing I got the error 2019

Googling

I got the page

http://www-01.ibm.com/support/docview.wss?uid=swg21226179

But Is the SYNCPOINT is in my cicsprogram which is the calling program

Still is that necessary my program cant have syncpoint

Any pointers or suggesions will be helpful indeed.

Thanks.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Mar 04, 2012 4:28 am    Post subject:
Reply with quote

according to this link a 2019 is a MQRC_HOBJ_ERROR

your object handle is in error. don't know why you are talking about syncpoint.
i don't think you are making a remote system link, you have a submodule that you CALL. i suggest that you insure that the object handle that you pass to your submodule is correct.


and when you use the bbcode for a URL:

[ url=http://your_URL.com ] [ /url ]

your url replaces the http://your_URL.com and you put a meaningful tag (as in mine where i used the work link) goes between the ][

you can insure that your links are correct and work if you use the PREVIEW button and test your links before you SUBMIT your post
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Mar 04, 2012 4:47 am    Post subject:
Reply with quote

my LINK was not much better, here is the proper link.

please provide a little more detail.

does the mqs module that you CALL do an open,get,close all in one CALL
or do you have to CALL the module 3 times?

how does the mqs module return info to the CALLer,
so that problems can be resolved?

do you not receive any indication that the error occured on the open, the get or the close?
if not, sounds as if the mqs module should be amended to provide sufficient info for problem analysis.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Mar 04, 2012 5:34 am    Post subject:
Reply with quote

premkrishnan,

you say the get is failing, are you sure?

you can get the obj-handle error on any of the 3 i/o's.

again, a lot is dependent on how the CALLed module functions.
does it do all 3 (open,get,close) in one invokation
or must you invoke the module for each function?

is it a COBOL CALL, a CICS LINK or what?

how many iterations (messages) does your main program process?
1 or until the queue is empty?

where are syncpoints located?
explicitly in main module, mqs sub-module or no explicit syncpoints?


or none
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Mar 04, 2012 9:08 pm    Post subject:
Reply with quote

Hi Dick,

Its like I call the module for each function

Apologies for late reply
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Mar 04, 2012 9:32 pm    Post subject:
Reply with quote

premkrishnan,

ok

you CALL for an OPEN and it returns and you have a good return code
and the object handle is correct?

then you call for a get, and insure that the object handle is populated in your pass-a-long (CALL USING list and PROCEDURE DIV USING list)?

then you get a 2019 back.

ok, they are your modules, i have no access.

this is not interregion stuff (remote)
it is simply a COBOL CALL of the module
the CALLed module has no explicit syncpoint or commit?
the CALLing module has no explicit syncpoint or commit?

then you are not populating the object handle on the CALL for the get.
the mqs module receives the object handle from MQS upon successful completion of an open.
the CALLed module must pass the object handle back to the CALLing module.
the CALLing module must insure that it populates the object handle for the get CALL.

that's it.....
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Sun Mar 04, 2012 9:45 pm    Post subject:
Reply with quote

There are no explicit calls of the Syncpoint or commit

Here when you say object handle what is that and am not pretty sure what value should be passed

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Mar 04, 2012 10:37 pm    Post subject:
Reply with quote

premkrishnan,

part of the return from the MQS API CALL for OPEN
in addition to return code and reason code
is the obj handle assigned by mqs for the queue that you have opened.
(it is similar to the id (called a handle) returned from the ispf LMM... routines

after receiving the ojb handle from the open,
mqs gets, puts, and closes refer to the obj handle
and not the queue name.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Sun Mar 04, 2012 10:43 pm    Post subject: Reply to: MQGET fails with 2019
Reply with quote

Quote:
and when you use the bbcode for a URL:

[ url=http://your_URL.com ] [ /url ]

your url replaces the http://your_URL.com and you put a meaningful tag (as in mine where i used the work link) goes between the ][

you can insure that your links are correct and work if you use the PREVIEW button and test your links before you SUBMIT your post


and if just the url is needed , it is enough to paste it/write it and the coloring is automatic, I edited the post to take away the tags, and it looks good enough
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Thu Mar 08, 2012 2:58 pm    Post subject:
Reply with quote

Hi I have changed the methed of invocation of porgram and also changed the LINKAGE section it started to work fine

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts z/os USS: 'man' fails to read bookmaster maraixadm All Other Mainframe Topics 4 Sat Mar 21, 2015 7:59 pm
No new posts geting invalid chrachters in MQGET hkalhor Mainframe Jobs 0 Wed Aug 27, 2014 11:59 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us