Previous Topic: More Information

Next Topic: Object Locks

Locking Objects

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
Category

Objects that
Can Be Locked

Lock
Type

Meaning of
Lock

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