Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CICS creating MQ message for batch COBOL

Status
Not open for further replies.

vernonalex

Programmer
Feb 11, 2002
1
US
I have a CICS program creating a MQ message that a batch COBOL program is to read and print a report.
The CICS program creates the MQ message with no errors.

The batch COBOL program connects okay, opens the queue okay but on the MQGET I get a 2019 error: handle object error.

I'm stumped on what's wrong.

Anyone have any ideas?
 
It would be useful to see the code that you describe, and the context it is used in. For example, whether the MQGET is in a called program.

I have pasted a section from the programming reference book which may shed some light on the subject.


Hobj (MQHOBJ) - output
Object handle.
This handle represents the access that has been established to the object. It must be specified on subsequent message queuing calls that operate on the object. It ceases to be valid when the MQCLOSE call is issued, or when the unit of processing that defines the scope of the handle terminates.

The scope of the handle is restricted to the smallest unit of parallel processing within the environment concerned; the handle is not valid outside the unit of parallel processing from which the MQOPEN call was issued:

On MVS/ESA, the scope of the handle is:
For CICS, the CICS task issuing the call
For IMS, the Task Control Block issuing the call, up to the next syncpoint; this excludes any subtasks of the task
For MVS batch, the Task Control Block; this excludes any subtasks of the task.

Regards
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top