Retrieval Locks in IDMS-COBOL

0 pts.
Tags:
COBOL
Hi, I need some info on how to reduce the number of shared locks placed by my IDMS-COBOL batch program (running in retrieval mode on MVS). I had a look at the compiler options to find out if an option can be set at compiler level for batch programs but could not find any. The batch program is precompiled by IDMS/DML pre-compiler. Can I set a pre-compiler or compiler level option so that no locks are placed (not even shared locks) when retrieving a record? The parameter set during SYSGEN was Retrieval No locks. The DBA has confirmed that the system level default is that no locks will be placed during retrieval. Somehow this system option is getting overridden by our programs. In short, is there any other way I can run an IDMS-COBOL batch program in retrieval mode and not place any shared locks? Thanks, IdmsGeeK
ASKED: July 13, 2005  5:44 AM
UPDATED: July 14, 2005  1:44 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Sounds more like an SQL issue. Try using ‘WITH UR’ (uncommitted read) or ‘FOR READ ONLY’ at the end of your SQL statements.

IBM has an excellant SQL Reference Guide (online & downloadable).

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm?info/db2/rbafzmstcksql.htm

Hope this helps!

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following