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());

Parameter(s)

<Resource>
The resource to dequeue.
<Length>
Optional length of the resource.
noSuspend
Optional Boolean. If set to true, the program will not be suspended if the resource is not 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.

Example(s)

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