Previous Topic: LOGON termname [keywords]Next Topic: MVCURSOR termname row column


LOGOFF termname

This command disconnects the session between an external product and the virtual terminal. After the command completes, the virtual terminal is inactive, but enabled.

MSGID OFF
LOGOFF TERM4
TERMINAL TERM4 LOGGED OFF
Return code:
  0 - Normal completion.
  4 - No terminals logged off (LOGOFF ALL).
    - virtual terminal is not logged on.
    - virtual terminal is not defined.
 12 - LOGOFF command failed.