Terminate current job
Component: | BS2000 |
Functional area: | Job processing |
Domain: | JOB |
Privileges: | All privileges |
Function
The LOGOFF command terminates the current job. Subsequently, the virtual memory pages and devices occupied by the job are released and the output system files made available for output.
If new file generations were created during the job, the system lists the names of the file generations involved, their base number as well as the names of the first and the current file generation.
Format
LOGOFF |
KEEP-CONNECTION = *NO / *YES ,SYSTEM-OUTPUT = *STDOUT / *PRINT / *DELETE / *TAPE-OUTPUT |
Operands
KEEP-CONNECTION =
Specifies whether the connection to the computer is to be kept so that a new job can be started immediately.
This operand is permitted only in interactive mode; in batch mode it is ignored.
KEEP-CONNECTION = *NO
Clears the connection.
KEEP-CONNECTION = *YES
Maintains the connection with the computer. A new job can be started immediately.
SYSTEM-OUTPUT =
Specifies whether system files are to be output and defines the output medium. SYSLST and SYSOUT are not output if they are empty.
SYSTEM-OUTPUT = *STDOUT
Depending on the setting of the system parameter SSMOUT, the system files SYSLST and SYSOUT (batch mode) are output to printer or transferred by email. Transfer by email can be requested explicitly using the EXIT-JOB command.
SYSTEM-OUTPUT = *PRINT
Outputs the system files SYSLST and SYSOUT (in batch mode) to printer.
An additional list of dialog jobs can be output if the value NO-SPOOL is set for the system parameter SSMLGOF1.
SYSTEM-OUTPUT = *DELETE
Output of the system file is suppressed.
SYSTEM-OUTPUT = *TAPE-OUTPUT
Outputs the system files on tape.
SYSLST and SYSOUT (batch mode) are written to tape in the file: TAPE.TSNnnnn, where nnnn is the task sequence number of the job ended with LOGOFF.
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | Command executed 1) | |
1 | CMD0202 | Syntax error | |
32 | CMD0221 | System error; no message is sent to SYSOUT |
1)Cannot be evaluated since in this case the task is terminated!
Note
If a LOGOFF command is issued while a program is loaded, any ABEND-STXIT routine that may have been defined is activated. This is not the case when the LOGOFF command is called via the CMD macro (see the “Executive Macros” manual [22]).