AMT Help Files
Home Development Command Translation CICS Commands INQUIRE TERMINAL

INQUIRE TERMINAL

COBOL Java
EXEC CICS INQUIRE TERMINAL ibmCics.inquireTerminal

Syntax

ibmCics.inquireTerminal(new InquireTerminalOptions()
  .terminal(<Terminal>)
  [.servStatus(<ServStatus>)]
  [.userId(<UserId>)]
  [.accessMethod(<AccessMethod>)]
  [.acqStatus(<AcqStatus>)]
  [.noHandle(true)]
);

Parameter(s)

<Terminal>
The name of the terminal.
<ServStatus>
Returns the status of the terminal, in AMT this will return the value for 'INSERVICE'.
<UserId>
Returns the user ID using the terminal.
<AccessMethod>
Not used in AMT, returns 0.
<AcqStatus>
Not used in AMT, returns 0.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

COBOL Java
EXEC CICS
    INQUIRE TERMINAL (WS-TERMINAL)
        SERVSTATUS (WS-STATUS)
        USERID (WS-USER)
END-EXEC.
                
ibmCics.inquireTerminal(new InquireTerminalOptions()
  .terminal(locDef.ws_Terminal)
  .servStatus(locDef.ws_Status)
  .userId(locDef.ws_User)
);
                

Contents

 Go to top