IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MQGET fails with 2019


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pandora-Box

Global Moderator


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

PostPosted: Sat Mar 03, 2012 5:49 pm
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

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
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
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
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

Global Moderator


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

PostPosted: Sun Mar 04, 2012 9:08 pm
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
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

Global Moderator


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

PostPosted: Sun Mar 04, 2012 9:45 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sun Mar 04, 2012 10:43 pm
Reply with quote

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

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

your url replaces the 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

Global Moderator


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

PostPosted: Thu Mar 08, 2012 2:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts Convert from 1/1/2019 to 01/01/2019 DFSORT/ICETOOL 3
Search our Forums:

Back to Top