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
 

 

Batch job prevents bind - causes -904

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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 16, 2009 8:55 am    Post subject: Batch job prevents bind - causes -904
Reply with quote

Hello,

Does anyone know of a situation where a batch job using some plan would "lock" that plan (or a table referenced by that plan/dbrm) causing a -904 in the bind step when a compile/link/bind was run?

One of the people from "down the hall" came in this afternoon and said that a long-running batch job was preventing them from binding programs that used tables that were in use by the batch job. When the job was canceled, they were able to bind. The job did no updates, only reads against 2 tables.

They were unable to get any satisfactory answer from the db2 support people and asked if i might be able to help find a resolution. Their concern is that as both compiling and testing is increasing, this may become a major problem if it is not resolved.

I can probably get more specifics if needed, but for starters, i was just looking to see if this is a situation anyone has had to resolve. Searching our forum and then the web did not find many reports of this (there are a few, but very few). My guess is that there is come kind of configuration problem. . .

Thanks for any light you can shine icon_wink.gif

d
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Fri Jan 16, 2009 10:16 am    Post subject:
Reply with quote

You're the answer man Dick -- what're you doing asking a question? icon_smile.gif Seriously, I was involved in a project one time where many developers were compiling, linking, and binding DB2 programs all day long. It wasn't unusual for us to run across contention problems because of this. I think it was the SYSPLAN table that got hit often. We'd just resubmit our compiles and be on our way. Sorry I couldn't be of more help.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jan 16, 2009 6:05 pm    Post subject:
Reply with quote

Have no idea why - other than there is contention.

my experience is the opposite. batch jobs failing with -904 because of binds being performed.

sleep for 3 seconds, try again, success - go, failure - sleep, try again, until it works.

can't save a bind job from failing, but I could keep my batch jobs running.
Back to top
View user's profile Send private message
Suresh Ponnusamy

Active User


Joined: 22 Feb 2008
Posts: 107
Location: New York

PostPosted: Fri Jan 16, 2009 10:43 pm    Post subject:
Reply with quote

Just got it from the manual
Code:

Packages and plans are locked when you bind or run them.     


Probably need to look in to the BIND Options for the program which used in the job. What is the Isolation level used in the SQL.

The below given link might be useful.

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.perf/db2z_planpackageoptionsdiffer.htm
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


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