Locks are used to prevent two developers from updating and/or accessing the same object at the same time; they apply to both interactive and batch jobs. An object is locked while it is in use.CA 2E provides the following categories of locks:
The following table gives an overview of the three categories of locks. Each is discussed in more detail in this section.
|
Lock |
Objects that |
Lock |
Meaning of |
Authority Needed to Set Lock |
|---|---|---|---|---|
|
Object Locks |
Access Paths Functions |
Temporary |
A developer is using or updating an access path or function. |
*ANY |
|
|
|
Permanent |
A developer is using a file. |
*DSNR with additional rights |
|
File locks |
Files |
*READ |
|
*ANY |
|
|
|
*EXCL |
A designer is updating a file. |
*DSNR |
|
|
|
*SYNC |
|
*DSNR |
|
Field Locks |
Fields and related files and fields |
*READ |
A developer is using a field. |
*ANY |
|
|
|
*EXCL |
A designer is updating a field. |
*DSNR |
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |