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 

DSNREXX CONECT Failure

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Thu Dec 29, 2005 4:44 pm    Post subject: DSNREXX CONECT Failure Reply with quote

When I issue
Address TSO "SUBCOM DSNREXX"
If RC Then nSfRc=RXSUBCOM('ADD','DSNREXX','DSNREXX')
Address DSNREXX "CONNECT" DB2T in a rexx program, I am unable to connect to the DB2 susbsystem DB2T and I am getting a SQL Code of
-923 for CONNECT.

What am I missing here?
Back to top
View user's profile Send private message Send e-mail
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Thu Dec 29, 2005 5:13 pm    Post subject: Reply with quote

Try also capturing other reason-code and verify/check.

Type QW -923 on your command prompt and you can view the details if you have quick reference.
-923 CONNECTION NOT ESTABLISHED: DB2 condition REASON reason-code, TYPE resource-type, NAME resource-name

Explanation: The connection to DB2 failed for the reason indicated by
condition, which can be any of the following:

- DB2 not up
- DB2 not operational
- DB2 shutdown in progress
- DB2 restricted access mode
- Allocation error

- DB2 - CICS attachment not up
- The object is dependent on facilities of a release of DB2 that is
newer than the release that you are currently running (fall back).

Restricted access might be the most possible reason from REXX to connect. Because its most likely that DB2 is UP & Operational.

fyi
http://www.mvsforums.com/helpboards/viewtopic.php?t=172&highlight=rexx+db2

http://www.mvsforums.com/helpboards/viewtopic.php?t=159&highlight=rexx+db2

http://www.mvsforums.com/helpboards/viewtopic.php?t=797&highlight=rexx+db2
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Jan 02, 2006 12:39 am    Post subject: Reply with quote

Hi

Make sure that the DB2 REXX package is bind correctly. You can read more detailes in the manual.

O.
________
Ford HSC engine picture
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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