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

SQLCODE of -842 (connection already exists)


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mansoorhussain

New User


Joined: 04 Feb 2008
Posts: 2
Location: chennai

PostPosted: Mon Feb 04, 2008 1:35 pm
Reply with quote

Hi,

we had a porblem with the SQLCODE of -842 (connection already exists), while working on DRDA calls. Not sure why this error occurred. even we tried doing a reset before making a connection to remote machine.

Can anyone help me, how to overcome this problem.

Thanks,
Mansooor
Back to top
View user's profile Send private message
mansoorhussain

New User


Joined: 04 Feb 2008
Posts: 2
Location: chennai

PostPosted: Thu Feb 14, 2008 12:14 pm
Reply with quote

Hi all,

we were able to find out the problem and correct it. Actually our program was using aliases pointing to other production boxes. so we removed those aliases and did a remote connection to those boxes and retrieve data.

And the problem came because we missed a subprogram(that was using alias) which was called before the changed subprograms and so the next subprogram that was doing a remote connection abended with -842 sql code(connection already exists).
We changed the leftout subprogram to do a remote connection, and the job was done icon_wink.gif .

Thanks
Mansoor
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 14, 2008 8:53 pm
Reply with quote

Hello Mansoor and welcome to the forums,

Thank you for posting how the issue was resolved.

It will probably help someone else in the future icon_smile.gif

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

 


Similar Topics
Topic Forum Replies
No new posts Getting Error while trying to establi... DB2 3
No new posts SQLCODE = -122 while using the scalar... DB2 4
No new posts SQLCODE = -16002 when using XMLEXISTS DB2 1
No new posts Starting a remote transaction using a... CICS 0
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
Search our Forums:

Back to Top