View previous topic :: View next topic
|
Author |
Message |
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Dick,
Its like I call the module for each function
Apologies for late reply |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
|