Previous Topic: @DISCON ExampleNext Topic: #ENQ Syntax


#ENQ—acquires resources or tests for availability

The #ENQ statement acquires resources or tests for availability of a resource or list of resources. Defined during installation, resources can be storage areas, common routines, queues, and processor time.

An enqueued resource can be exclusive or shared:

An exclusive #ENQ request prohibits another task from enqueuing a resource by name; however, it does not prohibit the use of the resource by another task. Therefore, to effect queue resource protection, you must apply the enqueue/dequeue mechanism consistently, according to your site standards.