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
 

 

How to solve -924 Sqlcode?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ravven16

New User


Joined: 22 Aug 2006
Posts: 16

PostPosted: Thu Sep 14, 2006 7:40 pm    Post subject: How to solve -924 Sqlcode?
Reply with quote

Hi,

iam getting an bind error like this -924 SQL Code

The SYSTSPRT displays the following message

READY
DSN SYSTEM(DX00)
DSN
RUN PROGRAM(RAMESH) PLAN(RAMESH) LIB('CGEY.TEST.PD.PGMLIB')
PLAN RAMESH NOT AUTHORIZED FOR SUBSYSTEM DX00 AND AUTH ID VS90489
DSN
END
READY
END

I ahve used the following Bind controlcards

DSN SYSTEM(DX00)
BIND PLAN(RAMESH) OWNER(AETOWNR1)-
PKLIST(PDC001.*) -
VALIDATE(BIND) ISOLATION(CS) CACHESIZE(0) -
RELEASE(DEALLOCATE) -
ENABLE(BATCH) -
ACTION(REPLACE) RETAIN
END

DSN SYSTEM(DX00)
BIND PACKAGE(PDC001) OWNER(AETOWNR1) MEMBER(RAMESH) -
ACTION(REPLACE) DISABLE(REMOTE) VALIDATE(BIND) EXPLAIN(NO)
END

My bind process is succesful and iam getting 0 return code.

while running the program using the control card

//SYSTSIN DD *
DSN SYSTEM(DX00)
RUN PROGRAM(RAMESH)-
PLAN(RAMESH)-
LIB('CGEY.TEST.PD.PGMLIB')
END

iam getting an sqlcode code -924.

and ths SYSTPSRT displaces messages like this

READY
DSN SYSTEM(DX00)
DSN
RUN PROGRAM(RAMESH) PLAN(RAMESH) LIB('CGEY.TEST.PD.PGMLIB')
PLAN RAMESH NOT AUTHORIZED FOR SUBSYSTEM DX00 AND AUTH ID VS90489
DSN
END
READY

can anyone explain where iam going wrong or whether I have proper authorization...

What should I do to make the program work?

Regards

Ravi venkatesh KP
Back to top
View user's profile Send private message

Avinash_Gupta

New User


Joined: 11 May 2005
Posts: 26
Location: Hyderabad

PostPosted: Thu Sep 14, 2006 8:27 pm    Post subject: Re: How to solve -924 Sqlcode?
Reply with quote

Yes, it appears that you lack the authority for execution of the PLAN. You woud have to ask the DBA to give you the right authority for the execution.
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Sep 14, 2006 10:24 pm    Post subject: Re: How to solve -924 Sqlcode?
Reply with quote

I too faced same problem,

Solution: change ISOLATION(CS) to ISOLATION(RR) in bind itself and run the program. It will be resolved
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 DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts SQLCODE-000000080N priya91 DB2 1 Mon Feb 01, 2016 4:35 pm
No new posts Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am
No new posts SQLCODE -922 in Batch-Cics program tr... kishpra CICS 2 Thu Sep 10, 2015 12:36 pm
No new posts SQLCODE -450 for stored procedure spoorni DB2 3 Fri Jan 16, 2015 2:45 am


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