pjs.isShuttingDown()
Determines if the system or job is shutting down.
Return Value
true if the system or job is in the midst of shutting down.
false is the system or job is not in the midst of shutting down.
Example
// continue processing until the user exits or the job / system is ended
while (!exit && !pjs.isShuttingDown()) {
display.screen.execute();
// user's response can be processed here
}
RPG Equivalent
SHTDN, %SHTDN()