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: 650
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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