Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Error in binding during compilation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
j_prameela2000

New User


Joined: 01 Jun 2005
Posts: 28
Location: Chennai

PostPosted: Sat Aug 06, 2005 6:02 pm    Post subject: Error in binding during compilation
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
References
kvivek

Active User


Joined: 09 May 2005
Posts: 51
Location: Singapore

PostPosted: Sat Aug 06, 2005 9:07 pm    Post subject:
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

Active User


Joined: 09 Aug 2005
Posts: 68

PostPosted: Tue Aug 09, 2005 9:49 am    Post subject:
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    Post subject: Re: Error in binding during compilation
Reply with quote

Hi kvivek and bonniem,

Thanks.

Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1