Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SQLCODE of -842 (connection already exists)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: SQLCODE of -842 (connection already exists)
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    Post subject: Reply to: SQLCODE of -842 (connection already exists)
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

Site Director


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

PostPosted: Thu Feb 14, 2008 8:53 pm    Post subject: Reply to: SQLCODE of -842 (connection already exists)
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts SQLCODE-000000080N priya91 DB2 1 Mon Feb 01, 2016 4:35 pm
No new posts Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am
No new posts SQLCODE -922 in Batch-Cics program tr... kishpra CICS 2 Thu Sep 10, 2015 12:36 pm
No new posts SQLCODE -450 for stored procedure spoorni DB2 3 Fri Jan 16, 2015 2:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us