I'm working on a program to shut the system down in the event of a power failure.
Is there a way to end batch jobs?
Is there a way to end batch jobs?
* * When the SHTDN operation is run, a test is made to determine * whether the system operator has requested shutdown. If so, * indicator 27 is set on. C C SHTDN 27 C 27 EXSR Term_appl C : C : C Term_appl BEGSR C CLOSE *ALL C : C ENDSR
/FREE // If the operator has requested shutdown, quit the // program. IF %SHTDN; QuitProgram(); ENDIF; /END-FREE
Comment