AMT Help Files
Home Development Command Translation CICS Commands HANDLE AID

HANDLE AID

COBOL Java
EXEC CICS HANDLE AID ibmCics.setHandleAidItems

Syntax

ibmCics.setHandleAidItems ( <noHandle>, new CicsHandleAidItem(CicsHandleAidOption.<AidOption>, <Label>, <Section>)... );
Note: one or multiple instances of the CicsHandleAidItem class can be added.

Parameter(s)

<noHandle>
Optional boolean. If set to true, exceptions created by this command will be ignored.
<AidOption>
The Aid option, see the CicsHandleAidOption enum for all available options. Includes ANYKEY, CLEAR, ENTER, PF1-PF24 and others.
<Label>
The label to perform when the task ended abnormally.
<Section>
The section in the program where the label is located.

Example(s)

COBOL Java
EXEC CICS
    HANDLE AID
        ENTER(HANDLE-AID-SECTION)
        ANYKEY(HANDLE-AID-SECTION)
END-EXEC.
                
ibmCics.setHandleAidItems(false, 
  new CicsHandleAidItem(CicsHandleAidOption.ENTER, LABEL_HANDLE_AID_SECTION, "MAIN"), 
  new CicsHandleAidItem(CicsHandleAidOption.ANYKEY, LABEL_HANDLE_AID_SECTION, "MAIN"));
                

Contents

 Go to top