Before definitively terminating the session, the operator should send a message to all interactive users with the command SHUTDOWN MODE= QUIET to warn them and give them a chance to terminate their tasks in an orderly manner.
The effect of this is that an INFORM-ALL-JOBS command is simulated to inform timesharing users, and a BCEND W=Y,TERM=N command is issued to warn inquiry and transaction applications of the imminent BCEND. After this time no other users are admitted to the system and no new jobs will be started (e.g. with ENTER-JOB).
The operator initiates definitive system termination with the command SHUTDOWN MODE= END. All tasks still in processing are terminated and a command BCEND W=N is simulated. SPOOL and job entries are saved, however, and can be processed in the next session, depending on the type of system start selected. All private disk allocations are canceled.
The command SHUTDOWN MODE=END(RESTART=*YES) can be used to initiate an automatic restart after system termination.
SHUTDOWN MODE=END(RESTART=*YES(DELAY=...)) can be used to initiate this restart after a certain amount of time has elapsed. Both are relevant to the remote control of the system.
The command SHUTDOWN MODE=END(RESTART=*YES(IPL-DEVICE=...)) can be used to perform an automatic restart with a change of IPL disk. With the exchange of the IPL disk, the restart of another system is also possible (in AUTOMATIC mode).
Guest system shutdown in VM2000 mode
In VM2000 mode a guest system can also be shut down by means of the SE Manager with the action "BS2000 Shutdown" or using the VM2000 command SHUTDOWN-VM.
The monitor system, too, can be shut down by means of the SE Manager with the action "BS2000 Shutdown for Monitor-VM" or with the VM2000 command SHUTDOWN-VM.
For detailed information, see the “VM2000” manual [60].
System shutdown by means of the SE Manager (Systems main menu)
The shutdown of BS2000 can also be initiated by means of the SE Manager in the Systems main menu (Server Unit selected) in the Operation tab with the action "BS2000 Shutdown". This shutdown is always initiated without a time limit. The shutdown request is executed in a dynamically created system task and logged on the console with the message NRT1201
.
System shutdown by means of the SE Manager (Hardware main menu)
The shutdown of BS2000 can also be initiated by means of the SE Manager Hardware main menu (Server selected) in the Units tab with the action icon "Shutdown". This shutdown is always initiated on SU /390 without a time limit. Any remaining runtime which may have been set in the SE Manager is available to a BS2000 system on SU x86 to implement a proper shutdown.
The shutdown request is executed in a dynamically created system task. When the remaining runtime is set, it is logged on the console using NRT1200 SHUTDOWN WITH RUNTIME LIMIT REQUESTED BY 'X2000'. REMAINING RUNTIME: '<HH>:<MM>'
. When no remaining runtime is set, message NRT1201
is output, as above.
The remaining runtime is stored in the special job variable $SYSJV.REMAINING-BS2000-RUNTIME
and is decremented as the time elapses. The job variable consists of five characters with the following possible values:
UNDEF
No shutdown request by X2000UMLIM
No time limit<hh>:<mm>
Remaining time up to the abrupt shutdown of BS2000 by X2000
The SHUTPROC system parameter can also be used to control whether BS2000 is shut down immediately after a request by the SE manager or whether an enter job is to be started to shut the system down.
Immediate shutdown takes place in the same way as with the command SHUTDOWN MODE=*END(RESTART=*NO).
The enter job will possibly be expected in the $TSOS.SYSENT.SHUTDOWN file. It is started under the user ID which is specified in the enter job’s SET-LOGON-PARAMETERS command. The last action in the customer-specific preparations must be the command SHUTDOWN MODE=*NO/*END(RESTART=*NO). The OPERATING privilege is required to execute the SHUTDOWN command.
A sample command file for the enter job is supplied as the release item SYSENT.SHUTDOWN.TEMPLATE
of the BS2CP release unit and installed using IMON. Systems support must adapt this file to the system environment and the customer-specific termination steps and make it available under the name $TSOS.SYSENT.SHUTDOWN
.
For further information, please refer to the “Operation and Administration” manual [57].