Guardian Programmer's Guide

Table Of Contents
Communicating With Processes
Guardian Programmer’s Guide 421922-014
6 - 48
Programming the Requester
!------------------------------------------------------------
! Procedure to exit the program.
!------------------------------------------------------------
PROC EXIT^PROGRAM;
BEGIN
CALL PROCESS_STOP_;
END;
!------------------------------------------------------------
! Procedure to process an invalid command. The procedure
! informs the user that the selection was other than "r,"
! "u", "a," or "x."
!------------------------------------------------------------
PROC INVALID^COMMAND;
BEGIN
PRINT^BLANK;
! Inform the user that his selection was invalid
! then return to prompt again for a valid function:
PRINT^STR("INVALID COMMAND: " &
"Type either 'r,' 'u,' 'i,' or 'x'");
END;