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

Error in binding during compilation


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

New User


Joined: 01 Jun 2005
Posts: 28
Location: Chennai

PostPosted: Sat Aug 06, 2005 6:02 pm
Reply with quote

While I am compiling a CICS-COBOL-DB2 program I am getting return code as 8 and the error is in Binding where it shows the message as

DSNT500I - AD2 DSNTBCM2 RESOURCE UNAVAILABLE.

Please tell me why this error occurs.

When I execute the query in spufi for the same table that is used in the program, I am getting as 0 rows selected and with the sqlcode as -911 (deadlock or timeout).

Why is it so?

Please tell me why this error occurs.
Back to top
View user's profile Send private message
kvivek

New User


Joined: 09 May 2005
Posts: 51
Location: Singapore

PostPosted: Sat Aug 06, 2005 9:07 pm
Reply with quote

There are two reasons
1) Some other user has locked the table explicitly
2) Tablespace or Index could be in check/copy pending

Regards,
Vivek
Back to top
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Tue Aug 09, 2005 9:49 am
Reply with quote

It could also happen if the query is too complex and uses many temporary tables (select as <name>). Also please make sure you have the where predicates in the order of the indexes.
Back to top
View user's profile Send private message
j_prameela2000

New User


Joined: 01 Jun 2005
Posts: 28
Location: Chennai

PostPosted: Tue Aug 30, 2005 4:47 pm
Reply with quote

Hi kvivek and bonniem,

Thanks.

Regards,
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top