MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MQGET 2019 error in CICS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Tue Jun 19, 2007 8:50 am    Post subject: MQGET 2019 error in CICS Reply with quote

Hi,

I was trying for an MQGET in CICS and I'm getting 2019 (invalid hobj error). The case is like this...
Quote:

Logic
=========
1. Check for eibcalen = 0
2. If first time, then MQOPEN, throw the screen and then CICS Return with trnid--> this is working fine, i can see the screen
3. Next time, on enter key I'm trying MQGET and it gives me 2019.


If I change the Logic as below, it works fine
============================
Quote:

1. Check for eibcalen = 0
2. If first time, then MQOPEN, then MQGET, show the screen and then CICS Return with trnid--> this is working fine


This means that when i do a return and comeback i'm losing my values of MQOPEN and so object not found error : 2019.

I tried saving all the MQOD parameters, OPN-CONN parameters in DFHCOMMAREA and then use them in my next iteration. But still it doesnt seem to work.

I'm losing my MQOPEN stuff by the time i try my MQGET... how should i change the logic ...

Any thoughts ?

Thanks,
Deepesh
Back to top
View user's profile Send private message AIM Address
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jun 19, 2007 11:09 am    Post subject: Reply with quote

I think that you should get rid of the MQOPEN and replace the MQGET with MQGET1.

or

open the queue on each invocation of your program. Handles are only good for the instance (task) in which they were obtained.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group