AMT Help Files
Home Development Command Translation CICS Commands RETURN

RETURN

COBOL Java
EXEC CICS RETURN ibmCics.returnControl

Syntax

ibmCics.returnControl (new ReturnControlOptions.Builder()
  [.transId(<TransId>)]
  [.commArea(<CommArea>)]
  [.length(<Length>)]
  [.immediate(true)]
  [.inputMsg(<InputMsg>)]
  [.exitModuleCallRequired(true)]
  [.noHandle(true)]
  .build());

Parameter(s)

<TransId>
The transaction ID to be used.
<CommArea>
The communication area.
<Length>
The length of the communication area.
immediate
Optional Boolean. If set to true, the transaction will be performed before any other queued transaction.
<InputMsg>
The input message to be sent to the transaction.
exitModuleCallRequired
Optional Boolean. This option indicates if execution needs to be stopped.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

COBOL Java
EXEC CICS
    RETURN
        TRANSID(COMM-TRAN-ID)
        COMMAREA(COMMUNICATION-AREA)
        LENGTH(2048)
END-EXEC.
                
ibmCics.returnControl(new ReturnControlOptions.Builder()
  .transId(locDef.comm_Tran_Id)
  .commArea(locDef.communication_Area)
  .length(2048)
  .exitModuleCallRequired(false)
  .build());
                

Contents

 Go to top