EXIT [ HP RPG/XL Utilities-Part 2 RISE ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 2 RISE
EXIT
EXIT terminates execution of RISE.
Form
E[XIT] [N[OW]]
Parameter Explanation
N[OW] Exit immediately without keeping the work file and with
safety prompts disabled. If you are directly editing
your file, using the FILE command, the EXIT command will
close the file, keeping your changes. If the file being
edited is a copy of the original, initiated by the TEXT
or ADD commands, the EXIT command will not terminate
RISE unless a KEEP command is given to protect your
recent changes. The NOW parameter allows you to EXIT
immediately and discards any changes you may have made
to the file.
If you choose not to use the "NOW" parameter, RISE will
return a message asking if it is all right to clear the
work file upon termination. If you respond with
"Y[ES]", it will clear the file and exit. If you
respond with "N[O]", it will cancel the command so that
you can perform a KEEP first if you wish.
Purpose
The EXIT command terminates the execution of RISE, returning control to
MPE.
Execution mode: Line or Block.
Examples
The following are legal abbreviations which may be used with the EXIT
command and its parameters:
EXI NOW Exit immediately without the safety prompts.
E N Exit immediately without the safety prompts.
E Exit--safety prompts may be displayed on the screen.
In the example, a misspelling of EXIT causes an error message to be
displayed (1). EXIT is then entered correctly, and a safety prompt
reminds the user that the KEEP command has not been entered and asks if
clearing the work file is acceptable. The user responds negatively to
the prompt, and the command is cancelled (2).
An unacceptable parameter--MAYBE--produces another error (3). An illegal
special character is introduced between EXIT and the NOW parameter, with
another error resulting (4).
Finally, EXIT NOW is entered, and the command is completed with the
execution message displayed (5). The colon is MPE's prompt.
>
(1) >EXT
^
Error 15: Syntax error on EXIT command.
(2) >EXIT
KEEP not done, CLEAR current work file?NO
Exit cancelled.
(3) >EXIT MAYBE
^
Error 34: Only NOW parameter allowed with Exit command.
(4) >EXIT,NOW
^
Error 36: Ilegal special character
(5) >EXIT NOW
END OF PROGRAM
:
MPE/iX 5.0 Documentation