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

REXX-DB2 connection error. Is it bcoz of NO ACCESS to plan


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

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Thu Mar 10, 2011 11:35 am
Reply with quote

Hi,
I am getting RC=-1 when i try to connect to DB2 region from REXX using the SSID.
Code:
 ADDRESS TSO 'SUBCOM DSNREXX' 
    SAY 'RC=' RC                         
          IF RC THEN                                     
             S_RC = RXSUBCOM('ADD','DSNREXX','DSNREXX')   
          ELSE                                           
             SAY 'ERROR IN DB2 CONNECT-CHECK'             
ADDRESS DSNREXX 'CONNECT' DB2F                           
     SAY 'CONNECT' RC                                     
IF SQLCODE \= 0 THEN CALL SQLCA                           


Here is my output/error


Code:

RC=0
ERROR IN DB2 CONNECT-CHECK
TSS7251E Access Denied to DB2PLAN <DB2REXX>
CONNECT -1
SQLCODE   = -922
SQLSTATE  = 42505
SQLERRMC = 0


How to confirm that error is only because of access violation? Can it be rectified by adding SDSN.. PDS to my library?

Regards!
Sukumar
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Mar 10, 2011 6:30 pm
Reply with quote

SuKumar,

You are getting a Top-Secret Security error, since you don't have access to that plan.
Code:
TSS7251E Access Denied to DB2PLAN <DB2REXX>


Thanks,
Sushanth
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Mar 10, 2011 6:43 pm
Reply with quote

Check with your DBA and/or DB2 sysprog to see if DSNREXX has been installed in your shop. (Usually they grant access to PUBLIC to the plan needed by DSNREXX)
Back to top
View user's profile Send private message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Mon Mar 14, 2011 4:00 pm
Reply with quote

Thanks!
It happened because of not adding the following PDS in my ISPLLIB??
'DSN.DBT1.DSNLOAD'
'DSN.DBT1.DSNEXIT'
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top