Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 658
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us