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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: REXX-DB2 connection error. Is it bcoz of NO ACCESS to plan
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: 1013
Location: India

PostPosted: Thu Mar 10, 2011 6:30 pm    Post subject:
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: 642
Location: Whitby, ON, Canada

PostPosted: Thu Mar 10, 2011 6:43 pm    Post subject:
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    Post subject:
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    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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm


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