AMT Help Files
Home Development Command Translation CICS Commands ENQ

ENQ

COBOL Java
EXEC CICS ENQ ibmCics.enq

Syntax

ibmCics.enq(new EnqOptions.Builder()
  .resource(<Resource>)
  [.length(<Length>)]
  [.noSuspend(true)]
  [.noHandle(true)]
  [.task(true)]
  .build());

Parameters

<Resource>
The resource to enqueue.
<Length>
Optional length of the resource.
noSuspend
Optional Boolean. If set to true, the program won't be suspended if the resource isn't available.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.
task
Optional Boolean. If set to true, the task option will be enabled.

Examples

COBOL Java
EXEC CICS
    ENQ 
        RESOURCE(RESOURCE-ID)
        LENGTH(4)
        NOSUSPEND
END-EXEC.
                
ibmCics.enq(new EnqOptions.Builder()
    .resource(locDef.resource_Id)
    .length(4)
    .noSuspend(true)
    .build());
                

Contents

 Go to top