When should I use DoObjectLock? Whenever you encounter an AS/400 object with a locked status that must be released. At times the object is locked be several users or processes, and unlocking it is easy (for example, you can call the users and ask them to exit the system or end the locking). But when the object is locked by a large number of users or process, unlocking can be complicated. At this stage DoObjectLock can do the job for you.
What can DoObjectLock do for me? DoObjectLock helps to unlock an object by performing an action on a given list of users/processes that lock the object, without disrupting the rest of the users.
Using the DOOBJLCK command enables you to: - Send a selective break message to all the users who lock an AS/400 object. - Perform selective ENDJOB to all users/processes that lock an AS/400 object. - Create a file that includes a list of all the users who lock an AS/400 object.
The DOOBJLCK command is easy to integrate into your AS/400 program. It can be used in day-to-day interactive system operations or in combination with batch processes such as system backups.