Object lock in AS/400

10 pts.
Tags:
AS/400
AS/400 object lock
What is meant by an object lock in AS/400? How can it be prevented?
ASKED: September 14, 2012  4:51 AM
UPDATED: September 14, 2012  11:45 AM

Answer Wiki

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

Discuss This Question: 3  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
    What is meant by an object lock in As400?   Locks are mostly just bits set by the system or by your programs. They are used to determine if the object is being used or not, and also to help tell how the object is being used. If one program sets a lock for "exclusive" use, then another program must wait before it can use the same object.   Locks are used to prevent two different programs from trying to change one object at the same time. One program must finish first.   How can it be prevented?   Locks can be prevented by writing very bad programs. By preventing locks, you will be sure to have corrupt objects and your systems will fail.   Why would you want to prevent locks and break your objects? (I suspect that I know, but you need to be able to explain. Your question is far too vague.)   Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    I've seen a lot of this in older/legacy code here and elswhere..Mostly I find it with record locks. What the problem is most of the time a user has data up on there screen and goes to lunch / meeting or conference call. Nobody can use that record until the complete their task.The solution was have the programmer look at the application. If there are no updates being done and the record was accessed with a CHAIN op-code, change it to CHAIN(N). The old way locks the record. The CHAIN(N) will still chain to the proper record but does not lock the record for update..
    6,360 pointsBadges:
    report
  • TomLiotta
    Nobody can use that record until the complete their task.   That relates to why the OP should explain what the concern is. Without a real description of the problem, we don't know if there is an 'object lock' issue, or if it's a 'record lock' which can be very different.   Tom
    125,585 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