Records lock error

5 pts.
Tags:
AS/400 Locking
AS/400 Records
Record lock
RPG Record Locks
I keep getting a records lock error even after I change the setting to no records lock.
ASKED: September 14, 2010  10:33 AM
UPDATED: October 6, 2011  7:16 AM

Answer Wiki

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

What do you mean, “change the setting to no records lock.”?
What language are you using?
Give us some samples of the code.
Phil

Discuss This Question: 2  Replies

 
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
  • TomLiotta
    You will get a 'lock' error if you try to update a record that is currently locked by another program. You cannot turn that off. You can read locked records; but if you later try to execute an update against that record, the lock in the other program will prevent DB2 from obtaining the lock for your program (which is beyond your control). So, as Phil asked, what are you saying with "change the setting to no records lock"? Tom
    125,585 pointsBadges:
    report
  • Yorkshireman
    You need a design level standard Don't lock the record. Don't ever write anything that locks a record - ever. Except just before you update it. read and display read and display decide an update is needed read the record for update (lock) check it hasn't changed since you displayed it ( tell the user if so) update it release the lock read and display read and display blahblah
    5,520 pointsBadges:
    report

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