LOGOFF
This command terminates the connection between an EXEC and an OSPI session.
If the DISCONNECT parameter is not specified, it also logs off the application and frees all internal resources associated with the session.
Refer to Interacting-with-VTAM-applications-with-OSPI for more information about using this command and OSPI.
Command | Parameters |
---|---|
LOGOFF | SESSION() [DISCONNECT] |
The following table describes the parameters:
Parameter | Function | Notes |
---|---|---|
SESSION() | Specify the session identifier that is returned when establishing a session with the LOGON command. | The session is determined by the results of the LOGON command. |
DISCONNECT | Request temporary disconnection of the session. | If specified, retains the session in the background so it can be picked up by a later LOGON command. Otherwise, it issues a TERMSESS macro against the application and closes the VTAM ACB that communicates with the application. This sequence results in an unconditional LOGOFF from the application. All internal resources associated with this session are freed. |
Condition codes are listed in the following table:
Value | Description |
---|---|
0 | Command was executed successfully. |
8 | Syntax error occurred or indicated session was not found. |
Example
This example command terminates a session previously established by using a LOGON command with a PREFIX() parameter that specified TSO.
REXX EXEC example:
'IMFEXEC LOGOFF SESSION('TSOSESS')'
CLIST example: